memory leaks (Tomcat 5.5.20 and JDK 1.6)
Hello Tomcat Users , Our web application uses Tomcat 5.5.20 with Java 1.6. The application's front end is designed in Flex and back end is web servcies deployed on axis. The application id running out of memory in about 2 days. We are optimizing the code and fixing memory leaks . is there a way to find out if Tomcat 5.5.20 has any inherent memory leaks. We are using J profiler and J probe for determining the memory usage of the appliocation during run time. Found this JIRa issue regaring memory leaks in functional tests (Tomcat 5.5.20) http://jira.atlassian.com/browse/JRA-12524?page=com.atlassian.jira.plugin.system.issuetabpanels:changehistory-tabpanel Please let me know, if you found any memory leak issues in Tomcat 5.5.20 . I think that 5.5.20 is a stable version of Tomcat, just wanted to know if there are any memory issues in this version. thank you, Suchitha.
Re: memory leaks (Tomcat 5.5.20 and JDK 1.6)
Thank you so Chris , I missed the part which talks about jira's memory leak issue. Will try to increase the heap memory and detect more memory leaks. On 8/10/07, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Suchitha, suchitha koneru wrote: The application id running out of memory in about 2 days. We are optimizing the code and fixing memory leaks . is there a way to find out if Tomcat 5.5.20 has any inherent memory leaks. Many people are using various Tomcat versions without any apparent memory leaks. I would guess that either: 1. You simply need more memory to support the numbers of users you have. 2. Your application is leaking objects or resources. Found this JIRa issue regaring memory leaks in functional tests (Tomcat 5.5.20) http://jira.atlassian.com/browse/JRA-12524?page=com.atlassian.jira.plugin.system.issuetabpanels:changehistory-tabpanel If you read past the description of the bug, you'd see: 1. This was a bug logged against JIRA, which is a bug-tracking tool. 2. The issue was identified as a problem with JIRA and corrected. Please let me know, if you found any memory leak issues in Tomcat 5.5.20. I think that 5.5.20 is a stable version of Tomcat, just wanted to know if there are any memory issues in this version. You should upgrade to 5.5.23 if possible, since that is the latest 5.5 version available. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGvMnM9CaO5/Lv0PARAk/1AKC55XkD04fjgfliobXpsl6W0I7RJACfaiCm iVKULZJEn1h7Bpp89hdWFLo= =p7FV -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: broker start up in Tomcat
Thank you Len for the suggested approach . The web apps should be abstracted from the procedure of starting the broker, otherwise I'll end up adding a servlet context listener for every new web app added to our application. If possible, Iam looking for a way , in which Tomcat would start the broker without any involvement from web applications. On 7/26/07, Len Popp [EMAIL PROTECTED] wrote: Write a function in your shared lib that checks if Active MQ has been started yet, and starts it if not. Then, in each webapp add a ServletContextListener with a contextInitialized method that calls the aforementioned function. Thus, Active MQ will be initialized when the first webapp starts up, whichever it is. -- Len On 7/26/07, suchitha koneru [EMAIL PROTECTED] wrote: Hello Tomcat Users, I am using Tomcat server 5.5.20 along with Java 1.6, and Active MQ 4.1.1. There are two web applications A and B which communicate via the active mq broker. Our application has a requirement of starting the broker before any of the web apps. Where should I be placing the code which starts the broker. I can create a jar file out of the code and dependent libraries and place it in common/lib. How will I communicate to Tomcat server that the broker has to be started during the server start up process, before any of the web apps ? Any pointers in this regard ? thank you , Suchitha. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: broker start up in Tomcat
Thank you so much Johnny for the idea. We have two web apps A and B namely. A is the front end of our application and B is the back end. Our application is web based, so we have a lot of https requests coming from the browser. We could have used a servlet for inter web app communication , but a servlet is visible to teh outside world. Our Messaging bus implemented using active mq is confined to the JVM and is not accessible to the out side world. The Web app A and Web app B have to keep each other updated and in sycn with respect to the mutual changes .They do it via the JMS Messaging Bus implemented using active MQ. On 7/26/07, Johnny Kewl [EMAIL PROTECTED] wrote: I dont know ActiveMQ but I think you will have to allow any WebApp that needs it, to start it, if its not already running I think you have 2 options, create a custom JNDI object or create a singleton start up object in common/lib, here is an article http://www.javacoffeebreak.com/articles/designpatterns/index.html Just remember that the lib is now shared and I imagine you call into this broker to send messages, if so remember to make it thread safe, it possibly is already. I am curious about what you using it for... I have still to find application for JMS in the TC environment, because sending a message to a servlet from an embedded http client has always served me well... its on port 80, so no firewall problems etc. I guess its because you have message beans in an application server somewhere just wondering. - Original Message - From: suchitha koneru [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Friday, July 27, 2007 12:48 AM Subject: broker start up in Tomcat Hello Tomcat Users, I am using Tomcat server 5.5.20 along with Java 1.6, and Active MQ 4.1.1. There are two web applications A and B which communicate via the active mq broker. Our application has a requirement of starting the broker before any of the web apps. Where should I be placing the code which starts the broker. I can create a jar file out of the code and dependent libraries and place it in common/lib. How will I communicate to Tomcat server that the broker has to be started during the server start up process, before any of the web apps ? Any pointers in this regard ? thank you , Suchitha. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
broker start up in Tomcat
Hello Tomcat Users, I am using Tomcat server 5.5.20 along with Java 1.6, and Active MQ 4.1.1. There are two web applications A and B which communicate via the active mq broker. Our application has a requirement of starting the broker before any of the web apps. Where should I be placing the code which starts the broker. I can create a jar file out of the code and dependent libraries and place it in common/lib. How will I communicate to Tomcat server that the broker has to be started during the server start up process, before any of the web apps ? Any pointers in this regard ? thank you , Suchitha.
order of web app initialization.
Hello Tomcat users , Iam using Tomcat 5.520 . I have three web application contexts Context A, B and C. I have a requirement because of which Context A should start Before B and C. All the web applications contexts are placed as WARS under Tomcat/webapps. How can we indicate the order in which Tomcat should start the web apps ? is there any configuration file for specifying the order of context initialization. What is teh default order which tomcat uses to start the web apps ? Please let me know. thanks, Suchitha.
Re: unable to launch a servlet using tomcat 5.5.20
Thank you so much for the response. The reason I am doing this is , because , I am using the servlet to start the Active MQ Broker. There are two web apps which will connect to the broker. The broker has to start first before any of the web apps. Hence I want to load the servlet which starts the broker, before any of the webapps get initialized. is there any other way I can make sure that the broker will start before any of the web apps . Iam using tomcat 5.5.20 and Java 1.5 On 3/8/07, suchitha koneru [EMAIL PROTECTED] wrote: Hello Tomcat Users , I am facing a problem starting a servlet from tomcat's web.xml . I am using Tomcat 5.5.20. The reason , I am placing this servlet in tomcat's web.xml instead of a web app is because I want , this servlet to start before tomcat loads any of the web application contexts. I have java 1.5 on my system The following is the code for the servlet. * public **class* ActiveMQBrokerServlet *extends* GenericServlet{ BrokerService broker ; *public* *void* init(ServletConfig config)* **throws* ServletException* *{ *try*{ broker = *new* BrokerService(); System. *out*.println(Starting ActiveMQ Broker Service...); broker.addConnector(tcp://localhost:61616?trace=truewireFormat.maxInactivityDuration=-1 ); broker.start(); System. *out*.println(Active MQ Broker Started at local host port 61616 ); } *catch*(Exception e){ e.printStackTrace(); } } *public* *void* destroy(){ *try*{ broker.stop(); System. *out*.println(Active MQ Broker Stopped at localhost port 61616 ); } *catch*(Exception e){ *throw* *new* RuntimeException(e); } } *public* *void* service(ServletRequest req , ServletResponse resp){ } } This servet is specified as follows in tomcat's conf/web.xml servlet servlet-nameactivemqbroker/servlet-name servlet-class com.cisco.cpnm.common.messaging.ActiveMQBrokerServlet /servlet-class load-on-startup6/load-on-startup /servlet For some reason , the servlet is not loaded , and I do not see any error messages. The servlet class file and the required jars are placed in Tomcat/common/lib. Please let me know, if Iam missing anything. thanks, Suchitha.
Re: Deployment problem on tomcat
how are you acessing the jsp files . Acording to your explanation , jsp files are placed in tomcat/webapps/Login/ assuming taht tomcat is started at 8080 , if you have a jsp called hello.jsp, you have to acess it as http://localhost:8080/Login/hello.jsp. On 3/9/07, Ersoy, Perihan [EMAIL PROTECTED] wrote: Hi Everyone, I'm new user on Tomcat. My problem maybe quite simple but I couldn't find the solution. I'm doing some web application by using Struts framework and Tomcat 5.5.17 using eclipse 3.2 IDE. I'm new developer on Struts, so I'm doing to some small coding. I developed some small code in struts document - The name of the document is Struts for Dummies - The document explain the deployment like that: In the webapps subfolder in the tomcat create Folder with the application name (My application project name Login, so I created Login folder) In the workspace folder select JSP files from WEB-INF folder and copy these jsp to tomcat/webapps/CreatedFolder ( in my situation tomcat/webapps/Login folder) I did it but It gave me HTTP Status 404 - /Login/ type Status report message /Login/ description The requested resource (/Login/) is not available. Apache Tomcat/5.5.17 Error. I searched for the solution in the internet and tried too many ways, but I couldn't solve. May anybody help me. I really need help PS: It might be easy problem, but I couldn't find out the solution Thank you very much Perihan Ersoy The information contained in this message or any of its attachments may be confidential and is intended for the exclusive use of the addressee(s). Any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited without the express permission of the sender. The views expressed in this email are those of the individual and not necessarily those of Sony or Sony affiliated companies. Sony email is for business use only. This email and any response may be monitored by Sony to be in compliance with Sony's global policies and standards - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
unable to launch a servlet using tomcat 5.5.20
Hello Tomcat Users , I am facing a problem starting a servlet from tomcat's web.xml . I am using Tomcat 5.5.20. The reason , I am placing this servlet in tomcat's web.xml instead of a web app is because I want , this servlet to start before tomcat loads any of the web application contexts. I have java 1.5 on my system The following is the code for the servlet. * public* *class* ActiveMQBrokerServlet *extends* GenericServlet{ BrokerService broker ; *public* *void* init(ServletConfig config)* **throws* ServletException* *{ *try*{ broker = *new* BrokerService(); System.*out*.println(Starting ActiveMQ Broker Service...); broker.addConnector( tcp://localhost:61616?trace=truewireFormat.maxInactivityDuration=-1); broker.start(); System.*out*.println(Active MQ Broker Started at local host port 61616); }*catch*(Exception e){ e.printStackTrace(); } } *public* *void* destroy(){ *try*{ broker.stop(); System.*out*.println(Active MQ Broker Stopped at localhost port 61616); }*catch*(Exception e){ *throw* *new* RuntimeException(e); } } *public* *void* service(ServletRequest req , ServletResponse resp){ } } This servet is specified as follows in tomcat's conf/web.xml servlet servlet-nameactivemqbroker/servlet-name servlet-class com.cisco.cpnm.common.messaging.ActiveMQBrokerServlet /servlet-class load-on-startup6/load-on-startup /servlet For some reason , the servlet is not loaded , and I do not see any error messages. The servlet class file and the required jars are placed in Tomcat/common/lib. Please let me know, if Iam missing anything. thanks, Suchitha.
unable to start tomcat from ant target
am using ant 1.6.2 version. I am having problem with ant target used to start tomcat server. Tomcat server is 5.5.20 version. The target is as follows target name=start_tomcat_server description=starts the tomcat server echo message=starting tomcat server / exec dir=${local.dir}/Tomcat/bin/ executable=startup.bat resolveexecutable=true /exec /target I get the the following message , when I run the target [exec] Result -1723061 The tomcat server does not start. Iam running this target from eclipse environment version 3.2. Any ideas as to what could be the reason ?? I googled on this topic , but was not able to find substantial information , to solve this problem. When I use startup.bat(tomcat/bin/startup.bat) , I can start tomcat,without any problem. thanks, Suchitha.
RE: Servlet Plugins for Eclipse
To start with , download eclipse with WTP from the following link http://download.eclipse.org/webtools/downloads/ The following link would give a sim ple example in setting up the WTP plug in. http://www.eclipse.org/webtools/community/tutorials/BuildJ2EEWebApp/Buil dJ2EEWebApp.html Good luck Suchitha. -Original Message- From: Kristian Rink [mailto:[EMAIL PROTECTED] Sent: Thursday, December 28, 2006 9:06 PM To: Tomcat Users List Subject: Re: Servlet Plugins for Eclipse athula bogoda schrieb: Hi All, Can any one tell how can I download or add plugins for Eclipse to develop Servlet applications. The Eclipse Web Tools Platform (WTP) provides all you need for that. Check http://mirror.yoxos-eclipse-distribution.de/eclipse.org/technology/phoen ix/demos/install-wtp/install-wtp.html to get a clue on how to use it. Starting with Eclipse Callisto (see http://www.eclipse.org/callisto/java.ph ), installing and using these things has become a breeze. :) Good luck, Kristian - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat plugin in eclipse environment
Hello Tomcat users, I am trying to use the sysdeo plug in in eclipse env , to start/stop tomcat, so that debugging web applications , would be possible. I have the following problem , when trying to use the sysdeo plugin version (tomcat_3.2.0.beta3). I have set up the eclipse environment as per the instructions given on the page (http://www.sysdeo.com/eclipse/tomcatplugin http://www.sysdeo.com/eclipse/tomcatplugin ). I also , went through the tutorials, on this page. Tomcat_Base C:\Program Files\Apache Software Foundation\Tomcat5.5 Tomcat Home C:\Program Files\Apache Software Foundation\Tomcat5.5 server.xml - C:\Program Files\Apache Software Foundation\Tomcat5.5\conf\server.xml When I try to start , tomcat server from eclipse env , I get the following exception log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.Bootstrap). log4j:WARN Please initialize the log4j system properly. java.lang.NoClassDefFoundError: org/apache/tomcat/util/log/SystemLogHandler at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:224) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) When I start , tomcat server manually , using bin/startup.bat, the server starts without any exceptions. is there any property , which Iam missing, please let me know. I googled on this topic, I tried couple of suggestions, of including tomcat jars in class path, but it did not help. We need a debugging env for our project as soon as possible, otherwise we'll end up with thousands of system.out.print statements. Any help is greatly appreciated. thanks, Suchitha.
RE: Tomcat plugin in eclipse environment
Thank you Asensio, for the information. I am currently trying out the WTP plug in, but found limitations , in its usage. We need to follow a pre defined directory structure for using it, also Iam not able to debug the code by setting break points. Using the WST for eclipse, were you able to debug by setting break points ? Please let me know, Thanks, Suchitha. -Original Message- From: Asensio, Rodrigo [mailto:[EMAIL PROTECTED] Sent: Thursday, December 28, 2006 11:53 AM To: Tomcat Users List Subject: RE: Tomcat plugin in eclipse environment Sysdeo sucks, if you get WST of eclipse (http://www.eclipse.org/webtools/) you have a great eclipse integration, its free and it allows you have several servers in you ide (jboss, bea, tomcat, etc.) regards From: Suchitha Koneru (sukoneru) [mailto:[EMAIL PROTECTED] Sent: Thu 12/28/2006 9:55 AM To: users@tomcat.apache.org Subject: Tomcat plugin in eclipse environment Hello Tomcat users, I am trying to use the sysdeo plug in in eclipse env , to start/stop tomcat, so that debugging web applications , would be possible. I have the following problem , when trying to use the sysdeo plugin version (tomcat_3.2.0.beta3). I have set up the eclipse environment as per the instructions given on the page (http://www.sysdeo.com/eclipse/tomcatplugin http://www.sysdeo.com/eclipse/tomcatplugin ). I also , went through the tutorials, on this page. Tomcat_Base C:\Program Files\Apache Software Foundation\Tomcat5.5 Tomcat Home C:\Program Files\Apache Software Foundation\Tomcat5.5 server.xml - C:\Program Files\Apache Software Foundation\Tomcat5.5\conf\server.xml When I try to start , tomcat server from eclipse env , I get the following exception log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.Bootstrap). log4j:WARN Please initialize the log4j system properly. java.lang.NoClassDefFoundError: org/apache/tomcat/util/log/SystemLogHandler at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:224) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) When I start , tomcat server manually , using bin/startup.bat, the server starts without any exceptions. is there any property , which Iam missing, please let me know. I googled on this topic, I tried couple of suggestions, of including tomcat jars in class path, but it did not help. We need a debugging env for our project as soon as possible, otherwise we'll end up with thousands of system.out.print statements. Any help is greatly appreciated. thanks, Suchitha. This message (including any attachments) contains confidential and/or proprietary information intended only for the addressee. Any unauthorized disclosure, copying, distribution or reliance on the contents of this information is strictly prohibited and may constitute a violation of law. If you are not the intended recipient, please notify the sender immediately by responding to this e-mail, and delete the message from your system. If you have any questions about this e-mail please notify the sender immediately. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]