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
Solved

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

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Some of the SEO trends we might expect in 2017.
The business world is becoming increasingly integrated with tech. It’s not just for a select few anymore — but what about if you have a small business? It may be easier than you think to integrate technology into your small business, and it’s likely…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

840 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