How to increase memory form Tomcat 5.5

View: New views
4 Messages — Rating Filter:   Alert me  

How to increase memory form Tomcat 5.5

by Tomás Tormo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

    I'm getting the OutOfMemory exception sometimes with some
applications in tomcat 5.5 on Ubuntu. I've been searching on the
internet how to give more memory to Tomcat, but the only way i found is
to add the line "set JAVA_OPTS=-server -Xms256m -Xmx512m" (cause in this
case i need that amount of memory) in the beginning of catalina.sh, but
it doesn't work: when i check the Server Status in the Web
Administration page of Tomcat, i always get the same value: 113 mb.
Could you please help me to resolve this issue?

Thank you very much.

--
Un saludo,

Tomás Tormo Franco

Indenova, S.L.
Tels.: +34 963 81 99 47
http://www.indenova.com
mailto:ttormo@...  


---------------------------------------------------------------------
To start a new topic, e-mail: users@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: How to increase memory form Tomcat 5.5

by James Law-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I believe in Linux the command is

Export JAVA_OPTS= etc

I put it in the setclasspath.sh file though I don't think its that important?


-----Original Message-----
From: Tomás Tormo [mailto:ttormo@...]
Sent: 13 May 2008 09:25
To: Tomcat Users List
Subject: How to increase memory form Tomcat 5.5

Hi

    I'm getting the OutOfMemory exception sometimes with some
applications in tomcat 5.5 on Ubuntu. I've been searching on the
internet how to give more memory to Tomcat, but the only way i found is
to add the line "set JAVA_OPTS=-server -Xms256m -Xmx512m" (cause in this
case i need that amount of memory) in the beginning of catalina.sh, but
it doesn't work: when i check the Server Status in the Web
Administration page of Tomcat, i always get the same value: 113 mb.
Could you please help me to resolve this issue?

Thank you very much.

--
Un saludo,

Tomás Tormo Franco

Indenova, S.L.
Tels.: +34 963 81 99 47
http://www.indenova.com
mailto:ttormo@...  


---------------------------------------------------------------------
To start a new topic, e-mail: users@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

****************************************************************************

Search all of our current vacancies at www.generic-software.com

****************************************************************************
The information contained within this message is intended for the addressee
only and may contain confidential and/or privileged information. If you are
not the addressee, please delete this message and notify the sender - you
should not copy, distribute or disclose its contents to other parties.
 
Any images, documents, views or opinions expressed in this message are
those of the sender and do not necessarily represent those of Generic
Software Consultants Ltd or any of its affiliates. No reliance may be
placed on this message without written confirmation from an authorised
company representative, and no actions should be taken based on its
contents.
 
Generic Software Consultants Ltd Registered in England No. 2830109 @
St. Andrews House, Caldecotte Lake Drive, Caldecotte Business Park,
Milton Keynes. MK7 8LE
Tel: 01908 278450
VAT Registered No: 608 6625 28

****************************************************************************

---------------------------------------------------------------------
To start a new topic, e-mail: users@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: *SPAM* RE: How to increase memory form Tomcat 5.5

by Tomás Tormo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I tried what you told me (actually, I put the line
*export JAVA_OPTS="-Xms256m -Xmx512m"* in the beginning of the setclasspath.sh file), but it didn't make anychange... (it is still saying 113mb avaliable in the Server Status in the Administration webpage...)

Any solution?

Thank you very much.



--
Un saludo,

Tomás Tormo Franco

Indenova, S.L.
Tels.: +34 963 81 99 47
http://www.indenova.com
mailto:ttormo@...  



James Law escribió:

> I believe in Linux the command is
>
> Export JAVA_OPTS= etc
>
> I put it in the setclasspath.sh file though I don't think its that important?
>
>
> -----Original Message-----
> From: Tomás Tormo [mailto:ttormo@...]
> Sent: 13 May 2008 09:25
> To: Tomcat Users List
> Subject: How to increase memory form Tomcat 5.5
>
> Hi
>
>     I'm getting the OutOfMemory exception sometimes with some
> applications in tomcat 5.5 on Ubuntu. I've been searching on the
> internet how to give more memory to Tomcat, but the only way i found is
> to add the line "set JAVA_OPTS=-server -Xms256m -Xmx512m" (cause in this
> case i need that amount of memory) in the beginning of catalina.sh, but
> it doesn't work: when i check the Server Status in the Web
> Administration page of Tomcat, i always get the same value: 113 mb.
> Could you please help me to resolve this issue?
>
> Thank you very much.
>
>  



Re: How to increase memory form Tomcat 5.5

by Filip Hanik - Dev Lists :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi James, a better place is to create a file called setenv.sh
that way you don't have to change any tomcat files

sometimes you have to separate out the commands like

JAVA_OPTS=-Xmx512m
export JAVA_OPTS

export is all lowercase
Filip

James Law wrote:

> I believe in Linux the command is
>
> Export JAVA_OPTS= etc
>
> I put it in the setclasspath.sh file though I don't think its that important?
>
>
> -----Original Message-----
> From: Tomás Tormo [mailto:ttormo@...]
> Sent: 13 May 2008 09:25
> To: Tomcat Users List
> Subject: How to increase memory form Tomcat 5.5
>
> Hi
>
>     I'm getting the OutOfMemory exception sometimes with some
> applications in tomcat 5.5 on Ubuntu. I've been searching on the
> internet how to give more memory to Tomcat, but the only way i found is
> to add the line "set JAVA_OPTS=-server -Xms256m -Xmx512m" (cause in this
> case i need that amount of memory) in the beginning of catalina.sh, but
> it doesn't work: when i check the Server Status in the Web
> Administration page of Tomcat, i always get the same value: 113 mb.
> Could you please help me to resolve this issue?
>
> Thank you very much.
>
>  


---------------------------------------------------------------------
To start a new topic, e-mail: users@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...