I have had Servoy Server v 2.1.2 running on a Red Hat 8 machine for months without any issues. All of a sudden after a server reboot, when running the “servoy_server.sh” script, it loads the properties and I get the following error.
exception in thread “main” java.lang.OutOfMemoryError
I can start Developer on the same machine and it runs fine.
I tried a quick reinstall, but that did not help. Any ideas?
Thanks,
Martin
Update:
I have installed a fresh copy of 2.1.2 on a new Red Hat 8 machine that has never had Servoy installed. Java version 1.4.2_04-b05.
I get the exact same error when running the servoy_server.sh script.
Exception in thread “main” java.lang.OutOfMemoryError
Another update:
3rd machine. Installed a fresh copy of Red Hat 9. Fresh copy of Java 1.4.2_05. Fresh copy of Servory 2.1.2.
Same problem. Isn’t anyone out there running a Servoy Server on Linux!!???
mpwiedemann:
Another update:
3rd machine. Installed a fresh copy of Red Hat 9. Fresh copy of Java 1.4.2_05. Fresh copy of Servory 2.1.2.
Same problem. Isn’t anyone out there running a Servoy Server on Linux!!???
One of my first Servoy customers has a Linux box (with Suse 9.1, I think) and Servoy running since version 1.2.
The same for another couple of customers, all of them with Suse.
The setup is not very easy (at least, for me it’s very abstruse: I’m a mac user ;-), but the platform is rock solid (I restart the server every now and then only to clean up the logs…)
I agree that it is rock solid. My RH8 / Servoy server had been running fine for nearly a year and I have not made any changes to the server. This is driving me nuts! ![Shocked :shock:]()
Very strange, we have hundreds of customers on linux many of them on redhat. Redhat is also part of our standard testing environment and each version is tested on it. Even quite a few hosting companies out there, on of them even runs 12 instances of servoy on a single box with no problems. Which database do you connect to? What is the full output you get on your console? what happens if you increase the memory settings to eg. 512 (add -Xmx 512M right behind java in the servoy_server.sh). Have you given 2.2 a try to see how that reacts?
Here is the output from the terminal window:
./servoy_server.sh -Xmx 512M
Looking for servoy.properties on /root/servoy.properties
Loading servoy.properties from /usr/local/servoy/servoy.properties
Loading - Done
Exception in thread “main” java.lang.OutOfMemoryError
All the machines I have tried this on are dual CPU and have 1 or 2gb of ram.
My repositoy is in MSSQL 2000 and also have connections to MySQL. Both database servers run on different machines. I will give 2.2 a try on one of the other 2 freshly loaded machines and let you know.
Thanks Jan,
Martin
I have upgraded to 2.2 and still have the same problem. Having the same problem on 3 different machines leads me to believe that I may just be doing something wrong. But what?
My production server had been running just fine for nearly a year until it was restarted. What else can I check??
mpwiedemann:
I have upgraded to 2.2 and still have the same problem. Having the same problem on 3 different machines leads me to believe that I may just be doing something wrong. But what?
My production server had been running just fine for nearly a year until it was restarted. What else can I check??
-what is the output of java -version on those machines
-can you add -Xmx 512M INTO the servoy_server file right behind the java command, I’m not sure if you feed it to the command line it gets taken into account.
I inserted the -Xmx512M as indicated and that seems to have done it. ![Very Happy :D]()
My java version:
java -version
java version “1.4.2_04”
Java™ 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot™ Client VM (build 1.4.2_04-b05, mixed mode)
I want to thank everyone at Servoy for putting out an outstanding product! And also for the way you respond to customer requests and problems. Other software companies could learn much from the way you take care of your customers.
Thanks again,
Martin