Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to change the startup parameters of tomcat6 on ubuntu, running as a service. I want to give it more memory.

What is the best way to do this?

share|improve this question
As far as I know, all services will grab resources as they need them… is that incorrect? – James Sep 13 '11 at 10:23
with tomcat, because it is java I need to send a command line parameter to the service. When I say service I mean it is configured to start via a script in /etc/init.d - I haven't figured out exactly where to put this parameter... – Michael Wiles Sep 13 '11 at 10:47
1… - that work? – James Sep 13 '11 at 11:24
Thanks, worked fine. – Michael Wiles Sep 13 '11 at 14:52
up vote 2 down vote accepted

The answer here worked for you according to the comments.

I would normally include the essential parts of the answer to avoid linkrot, but since this is on another Stackexchange site that won't be an issue.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.