Solved

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

Posted on 2006-07-13
3
1,177 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 29

Accepted Solution

by:
bloodredsun earned 500 total points
ID: 17110888
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
ID: 17116070
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
ID: 17118214
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
Choosing a core focus or particular set of features and options can be tough. To help out, we’re going to highlight a handful of things your business needs on one of your social media pages. In other words, if one of these is missing, you should imp…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

636 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