RE: clustering help
I have two jsp's for the same app on ebot servers(the code that sets and retrieves the session is below). When i hit the jsp on the first server a session is created and the id returned. Now i pass this as a parameter to the second jsp and it retrieves the session associated with this id from the second server and i can set the attribute value. server 1: <% session.setAttribute("killer", "ant"); out.println("The session id generated is "+session.getId()); %> server 2: <% String id = request.getParameter("id"); HttpSession _session = request.getSession().getSessionContext().getSession(id); if(_session == null){ out.println("session not available id: "+id); return; } String test = (String) _session.getValue("killer"); out.println("The killer value of session with ID "+ id +" is "+test); %> Regards, Nandish Rudra -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 5:23 PM To: Tomcat Users List Subject: Re: clustering help the logs are showing that everything is replicating fine. you can't change the browser url when switching to the other server, how are you testing if it works or not? Filip - Original Message - From: "Dale, Matt" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, December 02, 2004 4:10 PM Subject: RE: clustering help do you have the tag in your applications web.xml? -Original Message- From: Nandish Rudra [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 22:08 To: Tomcat Users List (E-mail) Subject: clustering help Hello, I an running tomcat 5.0.28 on redhat 9 and having some clustering problem. Here are the clusternig part of server.xml and the logs. The server.xml on both machines have the same cluster element values (see below). The application is with all jsp's. Sessions are created but not replicated across the machines. Can anyone please help me with this? server.xml: logs: Dec 2, 2004 4:54:50 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Dec 2, 2004 4:54:50 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 2378 ms Dec 2, 2004 4:54:51 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Dec 2, 2004 4:54:51 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 Dec 2, 2004 4:54:51 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Dec 2, 2004 4:54:51 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster start INFO: Cluster is about to start Dec 2, 2004 4:54:51 PM org.apache.catalina.cluster.mcast.McastService start INFO: Sleeping for 2000 secs to establish cluster membership Dec 2, 2004 4:54:51 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.1.104:4002 ,192.168.1.104,4002, alive=27652] Dec 2, 2004 4:54:53 PM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) Dec 2, 2004 4:54:53 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat-5.0.28/conf/Catalina/localhost/admin.xml Dec 2, 2004 4:54:54 PM org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Dec 2, 2004 4:54:54 PM org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Dec 2, 2004 4:54:55 PM org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true Dec 2, 2004 4:54:57 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat-5.0.28/conf/Catalina/localhost/balancer.xml Dec 2, 2004 4:54:57 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat-5.0.28/conf/Catalina/localhost/manager.xml Dec 2, 2004 4:54:58 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path from URL file:/usr/local/jakarta-tomcat/webapps/ROOT Creating ClusterManager for context using class org.apache.catalina.cluster.session.DeltaManager (Root Context) Dec 2, 2004 4:54:58 PM org.apache.catalina.cluster.session.DeltaManager start INFO: Starting clustering manager...: Dec 2, 2004 4:54:58 PM org.apache.catalina.cluster.session.DeltaManager start WARNING: Manager[], requesting session state from org.apache.c
RE: clustering help
Yes i do. Regards, Nandish Rudra ECI Conference Call Services, LLC -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 5:11 PM To: Tomcat Users List Subject: RE: clustering help do you have the tag in your applications web.xml? -Original Message- From: Nandish Rudra [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 22:08 To: Tomcat Users List (E-mail) Subject: clustering help Hello, I an running tomcat 5.0.28 on redhat 9 and having some clustering problem. Here are the clusternig part of server.xml and the logs. The server.xml on both machines have the same cluster element values (see below). The application is with all jsp's. Sessions are created but not replicated across the machines. Can anyone please help me with this? server.xml: logs: Dec 2, 2004 4:54:50 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Dec 2, 2004 4:54:50 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 2378 ms Dec 2, 2004 4:54:51 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Dec 2, 2004 4:54:51 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 Dec 2, 2004 4:54:51 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Dec 2, 2004 4:54:51 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster start INFO: Cluster is about to start Dec 2, 2004 4:54:51 PM org.apache.catalina.cluster.mcast.McastService start INFO: Sleeping for 2000 secs to establish cluster membership Dec 2, 2004 4:54:51 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.1.104:4002 ,192.168.1.104,4002, alive=27652] Dec 2, 2004 4:54:53 PM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) Dec 2, 2004 4:54:53 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat-5.0.28/conf/Catalina/localhost/admin.xml Dec 2, 2004 4:54:54 PM org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Dec 2, 2004 4:54:54 PM org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Dec 2, 2004 4:54:55 PM org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true Dec 2, 2004 4:54:57 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat-5.0.28/conf/Catalina/localhost/balancer.xml Dec 2, 2004 4:54:57 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat-5.0.28/conf/Catalina/localhost/manager.xml Dec 2, 2004 4:54:58 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path from URL file:/usr/local/jakarta-tomcat/webapps/ROOT Creating ClusterManager for context using class org.apache.catalina.cluster.session.DeltaManager (Root Context) Dec 2, 2004 4:54:58 PM org.apache.catalina.cluster.session.DeltaManager start INFO: Starting clustering manager...: Dec 2, 2004 4:54:58 PM org.apache.catalina.cluster.session.DeltaManager start WARNING: Manager[], requesting session state from org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.1.104:4002,192.1 68.1.104,4002, alive=34282]. This operation will timeout if no session state has been received within 60 seconds Dec 2, 2004 4:54:58 PM org.apache.catalina.cluster.session.DeltaManager start INFO: Manager[], session state received in 110 ms. Dec 2, 2004 4:54:58 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /jsp-examples from URL file:/usr/local/jakarta-tomcat-5.0.28/webapps/jsp-examples Dec 2, 2004 4:54:58 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /servlets-examples from URL file:/usr/local/jakarta-tomcat-5.0.28/webapps/servlets-examples Dec 2, 2004 4:54:58 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /tomcat-docs from URL file:/usr/local/jakarta-tomcat-5.0.28/webapps/tomcat-docs Dec 2, 2004 4:54:59 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /webdav from URL file:/usr/local/jakarta-tomcat-5.0.28/webapps/webdav Dec 2, 2004 4:54:59 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /ROOT.ORIG from
clustering help
rg.apache.catalina.startup.Catalina start INFO: Server startup in 8899 ms Dec 2, 2004 4:59:09 PM org.apache.catalina.cluster.tcp.ReplicationTransmitter addStats INFO: Nr of bytes sent=43516 over 100 ==435 bytes/request Dec 2, 2004 5:03:27 PM org.apache.catalina.cluster.tcp.ReplicationTransmitter addStats INFO: Nr of bytes sent=87184 over 200 ==435 bytes/request Dec 2, 2004 5:03:27 PM org.apache.catalina.cluster.tcp.ReplicationValve addClusterSendTime INFO: Average request time=70 ms for Cluster overhead time=7 ms for 100 requests (Request=7079ms Cluster=702ms). Regards, Nandish Rudra ECI Conference Call Services, LLC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
automatic deployment using ant
Hello, I am trying to do an auto deploy using ant script on tomcat 5.028 (Redhat 9). The war is about 60mb in size and tomcat is runnig with the following java_opts JAVA_OPTS='-Xmn32M -Xmx256M -XX:MaxHeapFreeRatio=30 -XX:+UseParallelGC'. Every time I try to deploy the war I get the following exception: /home/source/buildFiles/ecisite-build.xml:172: java.lang.OutOfMemoryError. This is what the deploy part of the ant script looks like. http://127.0.0.1:8080/manager"/> Installing/Deploying application Application to ${url}. Sleeping for 7seconds before proceeding to I first stop the app, then undeploy and then deploy. the first two work fin but deploy fails. I have had success in the past deploying using this piece of code but its failing here. any suggestions. Regards Nandish - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat/apache problem when using ssl
Hello Stephen, >From what you said it seems like you encountered the problem from IE, but i am not using IE and still see the error. Also, I can't even get images from the DoucmentRoot, which I have set to webapps in tomcat. Please do let me know if you come across a solution. Nandish Rudra -Original Message- From: Goldman, Stephen CIV SWRMC [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 1:51 PM To: Tomcat Users List Subject: RE: tomcat/apache problem when using ssl I'm experiencing the same problem. The issue is that microsoft (article Q316431) will not display a file from a SSL site if the cache is set to no-cache. It seems that Tomcat automatically generates a "Contect-Type" header that includes this parameter. I have not yet found out how to change it. If you look in the /conf/web.xml file under mime type mappings you will see this. Hopefully someone will have the answer. Stephen -Original Message----- From: Nandish Rudra [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 10:30 To: Tomcat Users List (E-mail) Subject: tomcat/apache problem when using ssl Hello, I am having problem accessing my webapps deployed in tomcat, through apache. I have setup apache to use SSL. When I attempt to access any files within tomcat I see the following error in apache's error logs. The browser says the connections was broken unexpectedly. I am running apache 2.0.49, tomcat 5.0.28 on redhat 9. [Tue Nov 02 13:06:25 2004] [error] Error ajp_marshal_into_msgb - No such method \x80g\x01\x03 [Tue Nov 02 13:06:25 2004] [error] ajp13.service(): error marshaling [Tue Nov 02 13:06:25 2004] [error] mod_jk2.handler() Error connecting to tomcat 12, status 0 Has anyone seen this error before? Regards, Nandish ECI Conference Call Services, LLC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat/apache problem when using ssl
Hello, I am having problem accessing my webapps deployed in tomcat, through apache. I have setup apache to use SSL. When I attempt to access any files within tomcat I see the following error in apache's error logs. The browser says the connections was broken unexpectedly. I am running apache 2.0.49, tomcat 5.0.28 on redhat 9. [Tue Nov 02 13:06:25 2004] [error] Error ajp_marshal_into_msgb - No such method \x80g\x01\x03 [Tue Nov 02 13:06:25 2004] [error] ajp13.service(): error marshaling [Tue Nov 02 13:06:25 2004] [error] mod_jk2.handler() Error connecting to tomcat 12, status 0 Has anyone seen this error before? Regards, Nandish ECI Conference Call Services, LLC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
apache problem
Hi, I am running Apache 2.0.49 and Tomcat 5.0.28 on RedHat 9.0. The users are unable to get the images when using the link http://test.test.net/images/test.gif but can get to it using http://test.test.net:8080/images/test.gif. I am new to Apache and would appreciate some help. Regards, Nandish Rudra ECI Conference Call Services, LLC Phone: (973) 796-5043 Cell: (732) 794 5362 Email: [EMAIL PROTECTED] Email2: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.1 Installation Help
look under /bin for the tomcatw.exe NR -Original Message- From: Venkat & Radha Venkataramanan [mailto:[EMAIL PROTECTED] Sent: Thursday, September 09, 2004 1:40 PM To: 'Tomcat Users List'; 'Atishay Kumar' Subject: RE: Tomcat 5.5.1 Installation Help Atishay: After I installed it the first time, I uninstalled it and reinstalled it. But this time, it did not create a program group called Tomcat! Now I don't even have the shortcut to start Tomcat service! Can you tell me what this program group and its members? VENKAT & RADHA VENKATARAMANANPhone: 1-201-358-0001 324 St. Mary Street Hillsdale, NJ 07642 [EMAIL PROTECTED] -Original Message- From: Atishay Kumar [mailto:[EMAIL PROTECTED] Sent: Thursday, September 09, 2004 12:41 PM To: Tomcat Users List Subject: Re: Tomcat 5.5.1 Installation Help you installed using a zip file or a tar.gz or exe? u can download the exe and it will automatically find the jre installed on ur system and do the neeful (infact i did install 5.5.1 version today on xp with sp2). u then just have to go to start->all-programs->tomcat->start tomcat On Thu, 9 Sep 2004 17:23:11 +0100, Allistair Crossley <[EMAIL PROTECTED]> wrote: > you can grab it at the binaries page at > > http://jakarta.apache.org/site/binindex.cgi > > either > > 5.5.1 Compat zip PGP MD5 > 5.5.1 Compat tar.gz PGP MD5 > > ADC > > > -Original Message- > > From: Venkat & Radha Venkataramanan > > [mailto:[EMAIL PROTECTED] > > Sent: 09 September 2004 17:15 > > To: [EMAIL PROTECTED] > > Subject: Tomcat 5.5.1 Installation Help > > > > > > Hello: > > > > > > > > I installed Tomcat 5.5.1 on a Windows XP Professional (SP2). The > > installation went without a hitch. > > > > > > > > The Release notes refers to a file "Running.txt" that I have > > to read if I am > > uing JRE 1.4 (I am actually using JRE 1.4.2). I read on the > > Tomcat page that > > I have to installa some compatibility modules. I > > > > > > > > > > > > Can somebody send me this file or tell me what I should do to > > complete my > > installation? > > > > > > > > Thanks. > > > > > > > > Venkat > > > > > > > > --- > QAS Ltd. > Developers of QuickAddress Software > http://www.qas.com";>www.qas.com > Registered in England: No 2582055 > Registered in Australia: No 082 851 474 > --- > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- :) Atishay Kumar Btech, SEM VII DA-IICT Gandhinagar - 382009 India ph: +91 9825383948 /*** * * Learn the rules as you would need them to break them properly * / - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Auto Deployming with context.xml
Hi, I looked through the archives and found a solution, switch off autodeploy. N R ECI Conference Call Services, LLC -Original Message- From: Nandish Rudra [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 3:49 PM To: Tomcat Users List (E-mail) Subject: Auto Deployming with context.xml Hello Everyone, I am try to use ant deploy task to deploy a web application to tomcat 5.0.28 (on Windows 2000). I have some context specific settingsthat need to take effect when i deploy the application. I looked at the tomcat documentation on line and followed the steps but when I deploy the application with context.xml in META-INF I get the follwoing error. I DO MAKE SURE that there is not context in tomcat with similar same. Sep 8, 2004 3:41:45 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/C:/Program Files/Apache Software Foundation/Tomcat 5.0/conf/Catalina/localhost/web-site.xml Sep 8, 2004 3:41:45 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application from URL jar:file:/C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/web-site.war!/ log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.ConvertUtils). log4j:WARN Please initialize the log4j system properly. Sep 8, 2004 3:41:56 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\Catalina\localhost\web-site.xml Sep 8, 2004 3:41:56 PM org.apache.commons.digester.Digester endElement SEVERE: End event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:7 6) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1567) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j ava:488) at org.apache.catalina.core.StandardHost.install(StandardHost.java:863) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483 ) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1083) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:327) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:119) at org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.java:80 0) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC hildren(ContainerBase.java:1619) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC hildren(ContainerBase.java:1628) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Cont ainerBase.java:1608) at java.lang.Thread.run(Thread.java:534) Caused by: java.lang.IllegalStateException: Context path /web-site is already in use at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer. java:896) ... 30 more Sep 8, 2004 3:41:56 PM org.apache.catalina.startup.HostConfig deployDescriptors SEVERE: Error deploying configuration descriptor calleci-site.xml java.io.IOException: java.lang.IllegalStateException: Context path /web-site is already in use at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j ava:494) at org.apache.catalina.core.StandardHost.install(StandardHost.java:863) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483
Auto Deployming with context.xml
Hello Everyone, I am try to use ant deploy task to deploy a web application to tomcat 5.0.28 (on Windows 2000). I have some context specific settingsthat need to take effect when i deploy the application. I looked at the tomcat documentation on line and followed the steps but when I deploy the application with context.xml in META-INF I get the follwoing error. I DO MAKE SURE that there is not context in tomcat with similar same. Sep 8, 2004 3:41:45 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/C:/Program Files/Apache Software Foundation/Tomcat 5.0/conf/Catalina/localhost/web-site.xml Sep 8, 2004 3:41:45 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application from URL jar:file:/C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/web-site.war!/ log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.ConvertUtils). log4j:WARN Please initialize the log4j system properly. Sep 8, 2004 3:41:56 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\Catalina\localhost\web-site.xml Sep 8, 2004 3:41:56 PM org.apache.commons.digester.Digester endElement SEVERE: End event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:7 6) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1567) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j ava:488) at org.apache.catalina.core.StandardHost.install(StandardHost.java:863) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483 ) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1083) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:327) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:119) at org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.java:80 0) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC hildren(ContainerBase.java:1619) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC hildren(ContainerBase.java:1628) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Cont ainerBase.java:1608) at java.lang.Thread.run(Thread.java:534) Caused by: java.lang.IllegalStateException: Context path /web-site is already in use at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer. java:896) ... 30 more Sep 8, 2004 3:41:56 PM org.apache.catalina.startup.HostConfig deployDescriptors SEVERE: Error deploying configuration descriptor calleci-site.xml java.io.IOException: java.lang.IllegalStateException: Context path /web-site is already in use at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j ava:494) at org.apache.catalina.core.StandardHost.install(StandardHost.java:863) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483 ) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1083) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:327) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEven
RE: Java process growth under Linux...leak?
Hi, Search for Java HotSpot on Google and look for the following java options ParallelGC and maxHeapRation. Set the JAVA_OPTS with these and solve the problems. Regards, NR -Original Message- From: Mark Maigatter [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 12:21 PM To: '[EMAIL PROTECTED]' Subject: Java process growth under Linux...leak? We have a Tomcat 5.0.25 based web site for uploading images and assorted files and managing them. We have found that the Java process that Tomcat is running under is gradually growing when repetitively processing files uploaded and stripped out of the form submissions by the Apache FileUpload component. All signs point to a memory leak? Upon the submission of about 500 files we had a 31MB growth in the size of the java process using "top". However, the Sun Java jvmstat shows that the Java heap is staying relatively constant. The "-gc" numbers fluctuate in a manner that shows reasonable garbage collection activity and the total used across the s0/s1/eden/old stay with the range for the initial numbers. My question is what would you recommend to isolate the process growth? Is there a way within Java to see the underlying process growth to help isolate it in the processing cycle? --mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Reading Servlet OutputStream
Here is something u guys can do. PipedOutputStream and PipedInputStream to redirect the output stream and read the data into a buffer and then do with it what u please. regards NR -Original Message- From: James Sherwood [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 12:48 PM To: Tomcat Users List Subject: Re: Reading Servlet OutputStream I am not using JSP, I am using Tapestry, any other ideas on how to accomplish this? James - Original Message - From: "John Villar" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, August 31, 2004 1:31 PM Subject: Re: Reading Servlet OutputStream > certainly my error the method is from the JSP API JspContext > http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jspapi/index.html > I ran into a problem that needed writing a zip file from the JSP page > > sorry for that one, however, with that method you could do what you're > trying > > Nitin Mulimani escribió: > > >Hi John, > > > >I am checking the Servlet2.3 api, and do not find a pushBody() method in HttpServletResponse. > > > >-- Nitin > >-Original Message- > >From: John Villar [mailto:[EMAIL PROTECTED] > >Sent: Tuesday, August 31, 2004 8:32 AM > >To: Tomcat Users List > >Subject: Re: Reading Servlet OutputStream > > > >Look at the pushBody method of the response class > >(HttpServletResponse) that's all you need > > > >Nitin Mulimani escribió: > > > > > > > >>This question is is more on the Servlet API. > >> > >> > >> > >>I want to read the servlet output stream and save in some buffer or > >>file, and then forward it to the client. I use filters to play with the > >>Request and Response objects. > >> > >> > >> > >>These are some of the things I have tried. > >> > >>1) I have a Wrapper which extends HttpServletResponseWrapper > >> > >>2) Constructed a PrintWriter writer = new PrintWriter(new > >>OutputStreamWriter(origResponse.getOutputStream(), charEnc)); > >> > >>Reader reader = new StringReader(printWriter.toString()); > >> > >> BufferedReader bufferedReader = new BufferedReader(reader); > >> > >> String line; > >> > >> while ((line = bufferedReader.readLine()) != null) { > >> > >> System.out.println("line : " + line); > >> > >> } > >> > >>3) bufferedReader.close(); > >> > >> > >> > >>Still am not able to read the response. I can write to the response, but > >>am stuck at reading the response. > >> > >> > >> > >>Any pointers. > >> > >> > >> > >>-- Nitin > >> > >> > >> > >> > >> > >> > > > > > > > > -- > John Villar > Gerente de Proyectos > Computadores Flor Hard Soft 2058 C.A. > www.florhard.com > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running Tomcat 5 Headless
Hello Everyone, Can any one tell me how to make tomcat start "headless" and what it exactly means, I am new to this term? I am running a webapp on redhat 9 machine (without X11) and using awt for manipulatiing images. The browsers look for X11 session whenever i try to access the servlets. From what I understand, a headless tomcat can solve my problem. Nandish Rudra ECI Conference Call Services, LLC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OutOfMemory Exceptions AGAIN
Hello QM, As Matt had suggested, i check and there was a jsp from one of the other apps running, that was not invalidating sessions. I found 9000+ sessions of that jsp. The jsp now invalidates its sessions and hopefully things will be better. As the app is still under development the load is almost nothing hence the needs of the heap should not be great. I have been running the same app on my machine locally and have not had any memory issue as of yet. Thanks for the help guys. Regards, Nandish Rudra ECI Conference Call Services, LLC -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 4:25 PM To: Tomcat Users List Subject: Re: OutOfMemory Exceptions AGAIN On Tue, Aug 17, 2004 at 02:13:40PM -0400, Nandish Rudra wrote: : Thanks for the reply. When I get an http request I do not attach any session : information or create and cookies/httpsessions and not using tomcat : clustering, would the sessions still be serialized. You may not explicitly put anything in a session, but they can still be created. For example, do all of your JSPs call <%@ page session="false" %> ? As for your other point: :I can change the -Xmx to 256 or512 but that is not a solution, its just :a way of temporarily getting awayfrom the problem. Not necessarily true. Your app may just need more than 128M heap size. Have you load-tested the app, with your expected number of concurrent users, to see what the app's mem usage would be? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OutOfMemory Exceptions AGAIN
Hello Matt, Thanks for the reply. When I get an http request I do not attach any session information or create and cookies/httpsessions and not using tomcat clustering, would the sessions still be serialized. Is there a way I can disable sessions completely from server.xml? Nandish Rudra ECI Conference Call Services, LLC -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 2:07 PM To: Tomcat Users List Subject: RE: OutOfMemory Exceptions AGAIN This sounds like your sessions arent getting invalidated. If you look at the tomcat manager app it will tell you how many there are and you are likely to see this number increasing. The reason that it starts bloated is because when you shutdown the sessions get serialised and then reloaded once you restart tomcat. To stop it starting up bloated remove the SESSIONS.ser file from your context's work directory, while the server is shut down. As a more permanent solution you should explicitly invalidate the sessions in your code or reduce the session inactive timeout but i'd suggest the former. Ta Matt -Original Message----- From: Nandish Rudra [mailto:[EMAIL PROTECTED] Sent: 17 August 2004 18:55 To: Tomcat Users List (E-mail) Subject: OutOfMemory Exceptions AGAIN Hello Everyone, I am getting an OutOfMemory Exceptions again. I have been running JProbe on my web application for some time now and have not noticed any memory issues, as in, memory not being released by the application. This is what my environment look like: - The environment is a cluster running on 2 Sun Blade servers running RedHat 9. Clustering is handled by my app and am not using tomcats clustering. - Apache 2, httpd 2.0.49 - Tomcat 5.0.25 - Java 2 SDK version 1.4.2_04 - Ant 1.6.1 I modified the server.xml to show the following change advised by one of the posts on the list. I also set the JAVA_OPTS to JAVA_OPTS="-Xmn32M -Xmx128M -XX:MaxHeapFreeRatio=30 -XX:+UseParallelGC". I can change the -Xmx to 256 or 512 but that is not a solution, its just a way of temporarily getting away from the problem. I have the following symptons - I got OutOfMemory Exception today after moving to tomcat 5 a couple of months ago, but have been noticing some funny memory usage. I was previously using tomcat 4.1.30 and was getting memory exceptions almost everyday. - When I shutdown the server and restart it java starts bloated, same size as when it was shutdown. I have tried this with the application removed but no difference. Attempts: - I have tested the app on windows machine and VMware installations of the same environment(RedHat 9) and can't duplicate the problems. - I have used JProbe to monitor memory cleaning in both environments and have found nothing. - I am in the process of getting JProbe installed on the cluster and will be able to monitor thereafter. I can use some really good suggestions at this point. Regards, Nandish Rudra ECI Conference Call Services, LLC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OutOfMemory Exceptions AGAIN
Hello Everyone, I am getting an OutOfMemory Exceptions again. I have been running JProbe on my web application for some time now and have not noticed any memory issues, as in, memory not being released by the application. This is what my environment look like: - The environment is a cluster running on 2 Sun Blade servers running RedHat 9. Clustering is handled by my app and am not using tomcats clustering. - Apache 2, httpd 2.0.49 - Tomcat 5.0.25 - Java 2 SDK version 1.4.2_04 - Ant 1.6.1 I modified the server.xml to show the following change advised by one of the posts on the list. I also set the JAVA_OPTS to JAVA_OPTS="-Xmn32M -Xmx128M -XX:MaxHeapFreeRatio=30 -XX:+UseParallelGC". I can change the -Xmx to 256 or 512 but that is not a solution, its just a way of temporarily getting away from the problem. I have the following symptons - I got OutOfMemory Exception today after moving to tomcat 5 a couple of months ago, but have been noticing some funny memory usage. I was previously using tomcat 4.1.30 and was getting memory exceptions almost everyday. - When I shutdown the server and restart it java starts bloated, same size as when it was shutdown. I have tried this with the application removed but no difference. Attempts: - I have tested the app on windows machine and VMware installations of the same environment(RedHat 9) and can't duplicate the problems. - I have used JProbe to monitor memory cleaning in both environments and have found nothing. - I am in the process of getting JProbe installed on the cluster and will be able to monitor thereafter. I can use some really good suggestions at this point. Regards, Nandish Rudra ECI Conference Call Services, LLC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mod JK - RedHat Enterprise 2.1 - Tomcat
you could download the rpm(glibc) form either of the locations. http://rhn.redhat.com/errata/RHSA-2003-334.html http://linux.maruhn.com/sec/glibc.html http://www.itp.tu-graz.ac.at/Comp/RPM/rh-9/glibc-2.3.2-11.9.i386.html -Original Message- From: McGovern, James F (HTSC, IT) [mailto:[EMAIL PROTECTED] Sent: Monday, August 16, 2004 2:43 PM To: 'Tomcat Users List' Subject: RE: Mod JK - RedHat Enterprise 2.1 - Tomcat Thanks for the various URLs. Was hoping that I would get a better answer than having to find source and compile or reinstall. Those answers are what I expect from MS. Was hoping for a simple get patch here download. This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with JVMStat or JProbe
OK, in that case you need to run tomcat through the JProbe. NR -Original Message- From: Robert Bateman [mailto:[EMAIL PROTECTED] Sent: Monday, August 16, 2004 2:44 PM To: Tomcat Users List Subject: Re: Help with JVMStat or JProbe On Monday 16 August 2004 02:34 pm, Nandish Rudra wrote: > Are you guys running tomcat through jprobe.? > No. Trying to use jvmstat and Jprobe to "see" the TC instance that is already running. Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help with JVMStat or JProbe
Are you guys running tomcat through jprobe.? NR -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Monday, August 16, 2004 2:14 PM To: Tomcat Users List Subject: RE: Help with JVMStat or JProbe This sounds odd, i have no trouble on linux. It should be called Bootstrap. -Original Message- From: Robert Bateman [mailto:[EMAIL PROTECTED] Sent: 16 August 2004 18:55 To: Tomcat Users List Subject: Re: Help with JVMStat or JProbe I'm having the same problem on Linux. My "practice" TC instance is started as part of the system startup with user root and group root. If I log in as root, I can't seem to locate the TC instance. But a ps -aef | grep java reveals the task. I feel foolish even asking, but I can't see where I've gone astray on this... Bob On Monday 16 August 2004 09:02 am, Dale, Matt wrote: > This is probably because the user that owns the service is not the same > user that you are logged in as when you start the perfagent. You need to > change the user that runs the service to be the same as you log in as and > all will work then. > > -Original Message- > From: B Poisson [mailto:[EMAIL PROTECTED] > Sent: 16 August 2004 13:55 > To: [EMAIL PROTECTED] > Subject: Help with JVMStat or JProbe > > > I'm running Tomcat 5.0.27 as a service on Windows 2000 Server sp4. Neither > JVMStat > nor JProbe can analyze the JVM for Tomcat5, neither of them recognize the > Tomcat5 > process as java-related. If I run from catalina.bat, I can use either one > just fine, but I > suspect I am having problems with the service so I need to analyze that > specifically. Does > anyone know how I can do this? > > Thanks! > > -b > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat performance/GC with JVMStat's visualgc
JProbe is also a nice tool for tracking JVM behaviour. You may want to look into it. Nandish Rudra ECI Conference Call Services, LLC -Original Message- From: Rajesh [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 1:08 AM To: [EMAIL PROTECTED] Subject: tomcat performance/GC with JVMStat's visualgc Hai all how to check Tomcat's garbage collectioin with JVMStat's visualgc Rajesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FW: Memory Usage - Tomcat 5.0.25
Hi, Yes the objects are GC'd but memory stays. If you look through yesterday's posts you will see emails that helped me solve the issue on Windows machine, but the issue is still alive with RedHat 9.0. I am in the process probing the linux boex's mepry to see what the is going on. Nandish Rudra ECI Conference Call Services, LLC -Original Message- From: Joseph Shraibman [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 8:54 PM To: Tomcat Users List Subject: Re: FW: Memory Usage - Tomcat 5.0.25 Nandish Rudra wrote: > > > Hello Everyone, > > I am writing about this error from yesterday. I used JProfiler to monitor my > memory usage. And am now sure that each and every static object is trashed > when the application is undeployed and the profiler shows that memory is > free and all instance of the objects are GC'd. This works on a Windows 2000 > setup of Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and Ant 1.6.1, but > fails miserably on RedHat 9 setup. this happens with both tomcat 5.0.25 and > 5.0.27 I'm a bit confused. Are you saying that the objects are GC'd on redhat 9 but the jvm is still big, or are you saying that the objects were never GC'd? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FW: Memory Usage - Tomcat 5.0.25
Hello guys, I have finally figured how to make JVM work the way I want it to. Setting some of the following options helps control the allocated memory size by huge amounts. I would strongly recommend using them. echo Setting JAVA_OPTS set JAVA_OPTS=-Xmn32M -Xmx128M -XX:MaxHeapFreeRatio=30 -XX:+UseParallelGC echo Using JAVA_OPTS: %JAVA_OPTS% Related link would be : http://java.sun.com/docs/hotspot/VMOptions.html Now the problem is these work on a Windows box when placed in catalina.bat but fail on a redHat 9 (Kernel 2.4.20-8)machine, in two ways - 1. When I place it in catalina.sh tomcat fails to start. 3. When I place startup.sh, tomcat starts but the windows behavior is not imitated. Any suggestion, Nandish Rudra ECI Conference Call Services, LLC -Original Message- From: Nandish Rudra [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 11:09 AM To: 'Tomcat Users List' Subject: RE: FW: Memory Usage - Tomcat 5.0.25 Hello QM, Thanks for your reply, it really cleared some things. First, tomcat has two levels for memory - allocated vs. used. While allocated increases with every spike by some amout and stays there, the used memor fluctuates. If I set the memory bounds for JVM by the mechanism you have said than once the allocated reaches that level, tomcat will crash(out of memory exception). Now, since all of the allcotaed memory is not being used, is there a way to control the allocated memory, as in, make it fluctuate with used memory. Regards, Nandish Rudra ECI Conference Call Services, LLC -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 8:38 PM To: Tomcat Users List Subject: Re: FW: Memory Usage - Tomcat 5.0.25 On Tue, Aug 10, 2004 at 04:54:26PM -0400, Nandish Rudra wrote: : I am writing about this error from yesterday. I used JProfiler to monitor my : memory usage. And am now sure that each and every static object is trashed : when the application is undeployed and the profiler shows that memory is : free and all instance of the objects are GC'd. Something else to consider: the memory for the JVM process isn't just the heap. The process maintains some memory for itself, outside of the designated heap ranges set with -Xmx and -Xms, for housekeeping and such. (This is often news to even experienced J2EE developers.) That may very well be what you're seeing. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FW: Memory Usage - Tomcat 5.0.25
Hello QM, Thanks for your reply, it really cleared some things. First, tomcat has two levels for memory - allocated vs. used. While allocated increases with every spike by some amout and stays there, the used memor fluctuates. If I set the memory bounds for JVM by the mechanism you have said than once the allocated reaches that level, tomcat will crash(out of memory exception). Now, since all of the allcotaed memory is not being used, is there a way to control the allocated memory, as in, make it fluctuate with used memory. Regards, Nandish Rudra ECI Conference Call Services, LLC -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 8:38 PM To: Tomcat Users List Subject: Re: FW: Memory Usage - Tomcat 5.0.25 On Tue, Aug 10, 2004 at 04:54:26PM -0400, Nandish Rudra wrote: : I am writing about this error from yesterday. I used JProfiler to monitor my : memory usage. And am now sure that each and every static object is trashed : when the application is undeployed and the profiler shows that memory is : free and all instance of the objects are GC'd. Something else to consider: the memory for the JVM process isn't just the heap. The process maintains some memory for itself, outside of the designated heap ranges set with -Xmx and -Xms, for housekeeping and such. (This is often news to even experienced J2EE developers.) That may very well be what you're seeing. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: Memory Usage - Tomcat 5.0.25
Hello Everyone, I am writing about this error from yesterday. I used JProfiler to monitor my memory usage. And am now sure that each and every static object is trashed when the application is undeployed and the profiler shows that memory is free and all instance of the objects are GC'd. This works on a Windows 2000 setup of Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and Ant 1.6.1, but fails miserably on RedHat 9 setup. this happens with both tomcat 5.0.25 and 5.0.27 Any ideas why something like this could be happening. Nandish Rudra ECI Conference call Service LLC. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 1:35 PM To: Tomcat Users List Subject: RE: Memory Usage - Tomcat 5.0.25 Hi, I have a couple of ideas. One is that your webapp maintain static or shared references to objects that prevent them from being garbage collected, and therefore memory from returning to the heap. Another is that a webapp undeploy is not guaranteed to reclaim all memory used by the webapp anyways so to count on this behavior is not smart. It is expected that every time you reload your webapp the overall memory usage of the server will go up a bit, as not all objects are gone (for example, if you have a static reference than the old classloader and anything that references it strongly will remain in memory). Yoav Shapira Millennium Research Informatics >-Original Message- >From: Nandish Rudra [mailto:[EMAIL PROTECTED] >Sent: Monday, August 09, 2004 1:17 PM >To: Tomcat Users List (E-mail) >Subject: Memory Usage - Tomcat 5.0.25 > >Hello, > >I am having some memory issues while deploing/undeploying web applications >to Tomcat. I am using Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and >Ant >1.6.1 on GNU Linux 2.4.20-8. I use ant to compile my web application and >Tomcat's catalina-ant.jar to deploy it automatically. > >Here is my problem. When I undeploy/remove an application, Tomcat does not >reclaim the memory being used by the web application and when the >application is re-deployed/re-installed a significant increase in memory is >seen. This increase is obviously the memory usage by the new instance of >the >web application. > >Does anyone have any idea as to why this is happening? > >Regards, >NR > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Out Of Memory
Hi, Chances are your app is not releasing memory properly. You can fine tune the jvm size, or use a java profiler to find where the memory leak is and fix the problem. I recommend JProbe if you wish to use a profiler. Nandish Rudra ECI Conference Call Services, LLC -Original Message- From: Bussie, Andre D [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 4:40 PM To: [EMAIL PROTECTED] Subject: Tomcat Out Of Memory What's is causing this error message and What can I do to solve it. 2004-08-10 16:36:35 StandardContext[/manager]HTMLManager: ManagerServlet.reload[/database] java.lang.OutOfMemoryError - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Memory Usage - Tomcat 5.0.25
Hello Everyone, I am writing about this error from yesterday. I used JProfiler to monitor my memory usage. And am now sure that each and every static object is trashed when the application is undeployed and the profiler shows that memory is free and all instance of the objects are GC'd. This works on a Windows 2000 setup of Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and Ant 1.6.1, but fails miserably on GNU Linux 2.4.20-8 setup. this happens with both tomcat 5.0.25 and 5.0.27 Any ideas why something like this could be happening. Nandish Rudra ECI Conference call Service LLC. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 1:35 PM To: Tomcat Users List Subject: RE: Memory Usage - Tomcat 5.0.25 Hi, I have a couple of ideas. One is that your webapp maintain static or shared references to objects that prevent them from being garbage collected, and therefore memory from returning to the heap. Another is that a webapp undeploy is not guaranteed to reclaim all memory used by the webapp anyways so to count on this behavior is not smart. It is expected that every time you reload your webapp the overall memory usage of the server will go up a bit, as not all objects are gone (for example, if you have a static reference than the old classloader and anything that references it strongly will remain in memory). Yoav Shapira Millennium Research Informatics >-Original Message- >From: Nandish Rudra [mailto:[EMAIL PROTECTED] >Sent: Monday, August 09, 2004 1:17 PM >To: Tomcat Users List (E-mail) >Subject: Memory Usage - Tomcat 5.0.25 > >Hello, > >I am having some memory issues while deploing/undeploying web applications >to Tomcat. I am using Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and >Ant >1.6.1 on GNU Linux 2.4.20-8. I use ant to compile my web application and >Tomcat's catalina-ant.jar to deploy it automatically. > >Here is my problem. When I undeploy/remove an application, Tomcat does not >reclaim the memory being used by the web application and when the >application is re-deployed/re-installed a significant increase in memory is >seen. This increase is obviously the memory usage by the new instance of >the >web application. > >Does anyone have any idea as to why this is happening? > >Regards, >NR > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory Usage - Tomcat 5.0.25
Hello Yaov, You are correct I do have a few static varibles that point to running threads and some other objects. When the application is shutdown I ensure that each thread is destroyed and all static varibales are set to null, including thread identifiers, this should let my call to GC clear the memory. You are also right in saying that i should not depend on undeploy to reclaim all memory that the webapp was using, and I don't. Like I mentioned I do make sure all static variables get set to null before the application shuts down. It would be understandable if not all memory utilized by the webapp is reclaimed, but in my case absolutely no memory is being reclaimed. For example, say, i start tomcat and it starts with 30M initial memory usage without the application. Now when i deploy the application the size jumps by 8M to 38M. As the app is undeploy and re-deploy the memory usage jumps from 38M to 46-47M. Now this, if I am not wrong, is not how things should be. I would appreciate anymore suggestion that you or anyone may have. Regards, Nandish -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 1:35 PM To: Tomcat Users List Subject: RE: Memory Usage - Tomcat 5.0.25 Hi, I have a couple of ideas. One is that your webapp maintain static or shared references to objects that prevent them from being garbage collected, and therefore memory from returning to the heap. Another is that a webapp undeploy is not guaranteed to reclaim all memory used by the webapp anyways so to count on this behavior is not smart. It is expected that every time you reload your webapp the overall memory usage of the server will go up a bit, as not all objects are gone (for example, if you have a static reference than the old classloader and anything that references it strongly will remain in memory). Yoav Shapira Millennium Research Informatics >-Original Message- >From: Nandish Rudra [mailto:[EMAIL PROTECTED] >Sent: Monday, August 09, 2004 1:17 PM >To: Tomcat Users List (E-mail) >Subject: Memory Usage - Tomcat 5.0.25 > >Hello, > >I am having some memory issues while deploing/undeploying web applications >to Tomcat. I am using Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and >Ant >1.6.1 on GNU Linux 2.4.20-8. I use ant to compile my web application and >Tomcat's catalina-ant.jar to deploy it automatically. > >Here is my problem. When I undeploy/remove an application, Tomcat does not >reclaim the memory being used by the web application and when the >application is re-deployed/re-installed a significant increase in memory is >seen. This increase is obviously the memory usage by the new instance of >the >web application. > >Does anyone have any idea as to why this is happening? > >Regards, >NR > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Memory Usage - Tomcat 5.0.25
It took the message a while to showup on the list so resent it with some modification. please disregard the first message. The problem does happen on Windows. I was looking at the wrong process. NR - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Memory Usage - Tomcat 5.0.25
Hello, I am having some memory issues while deploing/undeploying web applications to Tomcat. I am using Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and Ant 1.6.1 on GNU Linux 2.4.20-8. I use ant to compile my web application and Tomcat's catalina-ant.jar to deploy it automatically. Here is my problem. When I undeploy/remove an application, Tomcat does not reclaim the memory being used by the web application and when the application is re-deployed/re-installed a significant increase in memory is seen. This increase is obviously the memory usage by the new instance of the web application. Does anyone have any idea as to why this is happening? Regards, NR - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Memory Usage - Tomcat 5.0.25
Hello, I am having some memory issues while deploing/undeploying web applications to Tomcat. I am using Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and Ant 1.6.1 on GNU Linux 2.4.20-8. I use ant to compile my web application and Tomcat's catalina-ant.jar to deploy it automatically. Here is my problem. When I undeploy/remove an application, Tomcat does not reclaim the memory being used by the web application and when the application is re-deployed/re-installed a significant increase in memory is seen. This increase is obviously the memory usage by the new instance of the web application. Another important detail to note is that, this behaviour is not seen, in a same setup, on a Windows 2000 machine. Does anyone have any idea as to why this is happening? Regards, NR - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat stops responding
Check logs for outofmemory exception. If the log has no exceptions check your memory usage. NR -Original Message- From: Keith Bottner [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 9:41 AM To: [EMAIL PROTECTED] Subject: Tomcat stops responding After I deploy my application everything immediately works fine, no problems. Then after some time (haven't narrowed it down yet but it seems to be several hours) Tomcat stops responding to requests. During this time there are little to no requests of Tomcat. Does anybody know why this might be occurring? Thanks in advance, Keith Have you ever noticed that the word 'complaint' and 'compliant' are spelled almost the same except the transposition of a single letter. I wonder why that is? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4 cluster - drops members
Hello, I have an application deployed on a tomcat 4.1.30 cluster. I retrieved a jar from http://cvs.apache.org/~fhanik/ , a tomcat 5 clustering jar that has been made portable for tomcat 4. We followed the instructions and setup the server.xml for the cluster. The application is deoplyed using ant auto deployment task. Now when the cluster is started the groups is successfully established. Suppose we have two servers A and B. When a browser hits the server A, a session is created on server A and an attempt is made to replicate session to server B. During the process server B hangs and is knocked off the cluster. Any ideas why this could be happening. Nandish Rudra - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5 replication question
Hi, I am using Tomcat 5.27 for clustering 2 server. The web application running on thses server maintains a TreeMap that needs to be replicated across the cluster. Currently, I use JGroups to do my own clustering, but now that tomcat 5 has built in clusteing i would like to use it. I cannot use sessions to replicate the tree bacause the data is not session specific, the web application is more of a service. Is there a way of making tomcat take over the replication task and if so, what do i need to do or where can i find documentation for it? Regards, Nandish Rudra Email: [EMAIL PROTECTED] Email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]