Hi everybody,
Could someone tell me exactly which Java and what PATH, JAVA_HOME varialbles, etc… I have to set to be able to run Developer and the Application Server on a Windows 2003 64bit machine.
I’m really confused, as you need 32bit Java to be able to install Servoy, then apparently Java used by Developer is not the same as the one of the Application Server…
Could someone make it clear?
Cheers.
I don’t understand, I have installed Java JDK 6u14 32bit to be sure it will work.
java -version
java version “1.6.0_14”
Java™ SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot™ Client VM (build 14.0-b16, mixed mode, sharing)
JAVA_HOME = C:\Program Files (x86)\Java\jre6
PATH = …;C:\Program Files (x86)\Java\jre6\bin;…
Developer starts but not the Server.
I get this message in the logs:
STATUS | wrapper | 2009/07/10 14:43:41 | → Wrapper Started as Service
STATUS | wrapper | 2009/07/10 14:43:41 | Launching a JVM…
INFO | jvm 1 | 2009/07/10 14:43:41 | Error occurred during initialization of VM
INFO | jvm 1 | 2009/07/10 14:43:41 | Could not reserve enough space for object heap
INFO | jvm 1 | 2009/07/10 14:43:41 | Could not create the Java virtual machine.
ERROR | wrapper | 2009/07/10 14:43:41 | JVM exited while loading the application.
STATUS | wrapper | 2009/07/10 14:43:45 | Launching a JVM…
INFO | jvm 2 | 2009/07/10 14:43:45 | Error occurred during initialization of VM
…
Interesting, by running the following command, copied from servoy_server.bat, it works:
java -Djava.awt.headless=true -Xmx256m -Xms64m -XX:MaxPermSize=128m -classpath .;lib\compat141.jar;lib\commons-codec.jar;lib\commons-httpclient.jar;lib\activation.jar;lib\antlr.jar;lib\commons-collections.jar;lib\commons-dbcp.jar;lib\commons-fileupload-1.0.jar;lib\commons-logging.jar;lib\commons-pool.jar;lib\dom4j.jar;lib\help.jar;lib\jabsorb.jar;lib\hibernate3.jar;lib\j2db.jar;lib\j2dbdev.jar;lib\jdbc2_0-stdext.jar;lib\jmx.jar;lib\BrowserLauncher2.jar;lib\jndi.jar;lib\js.jar;lib\jta.jar;lib\jug.jar;lib\log4j.jar;lib\mail.jar;lib\ohj-jewt.jar;lib\oracle_ice.jar;lib\server-bootstrap.jar;lib\servlet-api.jar;lib\wicket-calendar.jar;lib\wicket-extentions.jar;lib\wicket.jar;lib\slf4j-api.jar;lib\slf4j-log4j.jar;lib\joda-time.jar;lib\rmitnl.jar;lib\networktnl.jar com.servoy.j2db.server.ApplicationServer %1 %2 %3 %4 %5 %6 %7 %8 %9
Details from wrapper.conf
# Java Additional Parameters
wrapper.java.additional.1=-Djava.awt.headless=true
wrapper.java.additional.2=-Duser.dir="C:\Program Files (x86)\Servoy\application_server"
wrapper.java.additional.3=XX:MaxPermSize=128m
# Initial Java Heap Size (in MB)
wrapper.java.initmemory=64
# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=2048
For information the server has 8GB of RAM
“Fixed”
Apparently the message “Could not reserve enough space for object heap” was due to “wrapper.java.maxmemory=2048”.
2GB seems to be too much. I put it at 1024 and the service started properly.
I’ve got 8GB of RAM on my server and can only use 1GB??? Why? ![Shocked :shock:]()
do you use a 32bit or 64 bit java?
i guess 32 bit. then the max heap is just below the 2G (because of other none heap stuff)
if you use 64bit java you should be able to specify 6G if you want.
(ahh just saw your whole post, yes you are using a 32bit and for 2G or more you need a 64 bit machine for the application server
64bit is not yet supported for the developer but the application server can run 64 bit for a long time)
Servoy 5.0 developer will support 64bit on windows,mac and linux