Solved

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

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Title # Comments Views Activity
tomcat users xml 7 139
Looking for some programs to resell or buy source codes 1 78
ejb on wildfly 5 48
how to debug htl and js pages 8 58
The world seems to conceive of a curious bubble separating IT from “the business.”  More so than just about any other pursuit in the commercial world, people think of IT as some kind of an island.
This article was initially published on Monitis Blog, you can read it here . When it comes to deciding which approach to website performance monitoring is best for your business, unfortunately, like so many options in life . . . it depends. In t…

726 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