Solved

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

Posted on 2006-07-13
3
1,176 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
Microsoft is moving in-place eDiscovery & hold from ECP to EOP console under Content Search in Search and Investigation Options.  In this post, I will be showing you how to export emails to a PST file using the Content Search Options.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

734 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