Users Cannot compile under shared tomcat 5.9
Posted on 2006-07-05
I have a dedicated UNIX server that is running a shared tomcat environment.
If a user tries to compile a class file he gets an error Error occurred during initialization of VM, Could not reserve enough space for object heap, Could not create the Java virtual machine. The compile code is below;
username [~]# javac -cp /home/mikeippo/www/WEB-INF/classes/beans/*.java -sourcepath /home/mikeippo/www/WEB-INF/classes/beans -classpath /home/mikeippo/www/WEB-INF/classes/beans:/home/mikeippo/www/WEB-INF/classes:/home/mikeippo/www/WEB-INF/lib/servlet.jar:/home/mikeippo/www/WEB-INF/lib/mail.jar -J-Xms60m
If I increase the xms size to 66m I get this error
Error occurred during initialization of VM
Incompatible initial and maximum heap sizes specified
If I log on as root I can compile the classes without any -J-Xms60m entries
What am I doing wrong. I need users to compile their own classes.
would appreciate your help in resolving this