Solved

How do you assign xmx and mxs memory to shared users under tomcat 5.9

Posted on 2006-07-13
3
1,169 Views
Last Modified: 2008-01-09
Hello

I am able to compile a class under our shared tomcat 5.9 environment as long as I log on as root. If I log on as a shared user and submit the same compile options, I receive

"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;

javac -J-Xms30m  -J-Xmx40m -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

We have tried just about every combination of xms / xmx memory values and always get the same results.  This leads us to the conclusion that there is no xms/xmx memory assigned to a shared user.


Question:

Where do we assign xms/xmx memory to a shared user in our configuration. I believe that it is in the server.xml but cannot find the parameters

We asked this question in our last Request Title: Users Cannot compile under shared tomcat 5.9 but it appeared that the person who was helping us did not know the answer and gave up because he has not responded in about a week.  This left us hanging, so we created another question.

Your help is much appreciated

Ken
0
Comment
Question by:kwwells
  • 2
3 Comments
 
LVL 29

Accepted Solution

by:
bloodredsun earned 500 total points
Comment Utility
Tomcat 5.9? The latest versions are 5.5.17 and 5.0.28. Which version do you mean?

Can I ask why you are compiling the java code on the server? It's more normal practise to compile the code on your own machine and then upload the generated  class files to tomcat.

I don't think that you can specify these parameters in the server.xml or context.xml. Also, that it works as root user but not as shared indicates to me that this is more likely a permissions issue.
0
 

Author Comment

by:kwwells
Comment Utility
Hi Sorry it is 5.5.9

I have customers who want to contil on the server but after hearing what you had to say, "It's more normal practise to compile the code on your own machine and then upload the generated  class files to tomcat." then I think that I will leave it that way.  If I start getting a 100 tomcat users compiling at the same time it will cause problems, so why open pandoras box.

Thank-you for your help.

Ken


0
 
LVL 29

Expert Comment

by:bloodredsun
Comment Utility
Glad to help Ken :-)

I've worked from companies varying from small one franchises to investment banks and telecoms companies and uploading the class files (or better yet, war files) has always been standard practise.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
what is stuck threads? 3 96
html form inside div 3 86
memory representation of int[][][] a=new int[2][][]; 10 56
maven set up 2 104
Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
A procedure for exporting installed hotfix details of remote computers using powershell
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now