You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Baldacchini Marco <ba...@dwnet.it> on 2004/04/06 11:40:33 UTC

Tomcat Java OutOfMemory Error

Hi,
I'm running Tomcat 3.2.1 on Windows 2000 Server as service with 
jk_nt_service.exe utility.
I receive java.lang.OutOfMemory error in my JSP page.
I need to increment memory for JVM to 512 MB by setting -Xms512m -Xmx512m.
Where I do it?
Thanks in advance. 

Marco 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Problem with UserTransaction reference within Servlet code.

Posted by Hassan Sajjad <ha...@premierhousewares.co.uk>.
Hi

Can anyone help!

Problem with UserTransaction reference within Servlet code.

When you reference UserTransaction object in your Servlet Code, as from =
J2EE Specification: The J2EE Product Provider is responsible for =
providing an appropriate object as required ....


Context initCtx =3D new InitialContext();
// Look up the UserTransaction object.
UserTransaction tx =3D =
(UserTransaction)initCtx.lookup("java:comp/UserTransaction");
This works fine on J2EE Impementation Servers but fails on Tomcat 4.1.3. =
Exception:

javax.naming.NameNotFoundException: Name =
javax.transaction.UserTransaction is no
t bound in this Context
        at =
org.apache.naming.NamingContext.lookup(NamingContext.java:811)
        at =
org.apache.naming.NamingContext.lookup(NamingContext.java:194)
        at =
org.apache.naming.SelectorContext.lookup(SelectorContext.java:183)
        at javax.naming.InitialContext.lookup(InitialContext.java:347)



Thanks
Hassan


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Tomcat Java OutOfMemory Error

Posted by Jon Wingfield <jo...@mkodo.com>.
JAVA_OPTS only works for standalone startup not as a service.

Found this by googling.
http://forum.java.sun.com/thread.jsp?thread=290568&forum=33&message=1211179
Solution is about six down and by user dfortae

HTH,

Jon

shyam wrote:

> Hi,
> I not sure about tomcat 3.2.1. In tomcat 4 I have used the JAVA_OPTS . I
> set JAVA_OPTS as my environmental variable and that was it. Hope this
> helps you
> shyam
> 
> 
> 
> -----Original Message-----
> From: Baldacchini Marco [mailto:baldacchinim@dwnet.it] 
> Sent: Tuesday, April 06, 2004 5:41 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Tomcat Java OutOfMemory Error
> 
> Hi,
> I'm running Tomcat 3.2.1 on Windows 2000 Server as service with 
> jk_nt_service.exe utility.
> I receive java.lang.OutOfMemory error in my JSP page.
> I need to increment memory for JVM to 512 MB by setting -Xms512m
> -Xmx512m.
> Where I do it?
> Thanks in advance. 
> 
> Marco 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Tomcat Java OutOfMemory Error

Posted by Baldacchini Marco <ba...@dwnet.it>.
I have already tried but it does not work (I have tried also TOMCAT_OPTS as 
environmental variable), remains set up to the default (64MB).
Thanks 

shyam Scrive: 

> Hi,
> I not sure about tomcat 3.2.1. In tomcat 4 I have used the JAVA_OPTS . I
> set JAVA_OPTS as my environmental variable and that was it. Hope this
> helps you
> shyam 
> 
>  
> 
> -----Original Message-----
> From: Baldacchini Marco [mailto:baldacchinim@dwnet.it] 
> Sent: Tuesday, April 06, 2004 5:41 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Tomcat Java OutOfMemory Error 
> 
> Hi,
> I'm running Tomcat 3.2.1 on Windows 2000 Server as service with 
> jk_nt_service.exe utility.
> I receive java.lang.OutOfMemory error in my JSP page.
> I need to increment memory for JVM to 512 MB by setting -Xms512m
> -Xmx512m.
> Where I do it?
> Thanks in advance.  
> 
> Marco  
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org 
> 
>  
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org 
> 
 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: Tomcat Java OutOfMemory Error

Posted by shyam <sh...@interviewexchange.com>.
Hi,
I not sure about tomcat 3.2.1. In tomcat 4 I have used the JAVA_OPTS . I
set JAVA_OPTS as my environmental variable and that was it. Hope this
helps you
shyam



-----Original Message-----
From: Baldacchini Marco [mailto:baldacchinim@dwnet.it] 
Sent: Tuesday, April 06, 2004 5:41 AM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat Java OutOfMemory Error

Hi,
I'm running Tomcat 3.2.1 on Windows 2000 Server as service with 
jk_nt_service.exe utility.
I receive java.lang.OutOfMemory error in my JSP page.
I need to increment memory for JVM to 512 MB by setting -Xms512m
-Xmx512m.
Where I do it?
Thanks in advance. 

Marco 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org