RE: Tomcat on Windows: advantages of running as a service?
Running from a service makes it a no brainer to start up tomcat when you reboot the machine as it does it automatically. Disadvantages I would see is that it hides the console and makes it difficult to changes options like JAVA_OPTS. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 12 October 2005 12:12 To: Tomcat Users List Subject: Re: Tomcat on Windows: advantages of running as a service? The net start service name and net stop service name commands will allow you to stop and start Windows services from the command line (and thus from a batch script). You can get the service name from the Services property window. On Wed, 2005-10-12 at 06:18, Tom Burke wrote: I'm running Tomcat 5.0.28 on a Windows 2003 server, and I need to automatically shut it down restart it. One way is to control it via shutdown.bat startup.bat, and run these as scheduled tasks at (say) 3:30am and 3:31am. However, I've noticed that while shutdown.bat will shut it down if it was previously started as a service, startup.bat won't run it as a service, it starts it at a command prompt. My question is: does this matter? If I'm running on Windows are there any advantages to running Tomcat as a service? Or disadvantages to running from the command prompt? The server is dedicated to tomcat, by the way. Tom Burke - 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] * This E-mail may be confidential and may also be legally priviledged. If you are not the intended recipient, please notify us immediately; You should not copy it or use it for any purpose, nor disclose its content to any person. E-mail may be subject to data corruption accidentally or deliberately. For this reaszon it is inappropriate to rely on advice contained in an e-mail without obtaining written confirmation of it first. Authorised and regulated by the Financial Services Authority * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] How much RAM can java use
Hi, This will depend on which architecture of machine you are using. You will need both a 64 bit machine and a 64bit JVM to use that much memory. We use 12GB here with no problems on 64 bit solaris. Ta Matt -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: 06 October 2005 16:53 To: Struts Users Mailing List; Tomcat Users List Subject: [OT] How much RAM can java use Sorry for off-topic, but there are so many experts here! :-) Does anyone know for sure how much RAM I can use with JAVA 1.4 or 1.5? It seems to me, that the VM don't use more than 1.2 GB RAM even I gave it more (with mx/ms settings). We are planning to go to 16GB RAM machines to have a better caching, but I started to doubt that I can use 16GB Ram in a single JVM. Any thoughts, anyone? thanx leon - 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: [OT] How much RAM can java use
On the 32 bit system you definitely won't get more the 2G without some kernel hacking and you may well see even less than that. On the 64 with a 64 bit JVM you should be able to use however much you like obviously leaving some space for the OS to run in. -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: 06 October 2005 17:16 To: Tomcat Users List Subject: Re: [OT] How much RAM can java use On 10/6/05, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Subject: [OT] How much RAM can java use Does anyone know for sure how much RAM I can use with JAVA 1.4 or 1.5? The answer is very platform specific. For example, on a normal 32-bit Windows system, each process has a maximum of 2 GB to play with, but some of that is taken up by various .dlls. (And unfortunately, these are scattered throughout the range, and the Sun JVM insists on having contiguous space for the heap.) There is a boot option for some versions of Windows Server that changes the process virtual space to 3 GB, at the expense of some kernel capacity. I've seen 64-bit Sparc systems with Java heaps sized at hundreds of megabytes... Ok, I'll try to be more specific: Debian 3.1, kernel 2.6.x-smp (32 bit) or Debian 3.1, kernel 2.6.x-smp-emt64 (64 bit) Hardware: AMD Opteron and Xeon64 (both 64 bit) SUN jdk1.5 and/or jdk1.4.2 4 GB total RAM for 32-bit linux, with 3/1 memory partitioning 16GB total RAM for 64-bit linux. thanx leon - 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: connecting httpd with Tomcat
JK 1.2.13 is the latest mod_jk and the one you should use. Development on mod_jk has been abandoned due to lack of developer interest and most of the features backported to JK. -Original Message- From: Peter Menzel [mailto:[EMAIL PROTECTED] Sent: 26 September 2005 16:53 To: Tomcat Users List Subject: connecting httpd with Tomcat Hello tomcat users, I am trying to connect my Apache httpd 2.0.50 on SuSE 9.2 with a Tomcat 5.5.9. Actually I cannot figure out which Connector to use. I read about mod_jk, mod_jk2 and came to the Tomcat Connectors project, which provides JK 1.2.13 and JK 2.0.4. I tried JK 2.0.4. Is this the same as mod_jk2? It was not pretty stable, only a bunch of requests came through.. Is JK 1.2.13 the same as mod_jk? But mod_jk2 should have replaced mod_jk, while they say that JK 2.0.4 is deprecated ? I am totally confused about all the similiar names for different(?) stuff? Which one is now the right one for my task? Can anybody bring to the good side of the force? Regards, Peter Menzel - 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: session problems: www.blahblah.com versus blahblah.com
I'm not sure if this is the only or best way but you could create virtual hosts within your server.xml, one for each domain. Then obviously your code will only exist in one of the domains and the other you can do the redirect stuff. -Original Message- From: Michael Teter [mailto:[EMAIL PROTECTED] Sent: 16 August 2005 13:17 To: Tomcat Users List Subject: Re: session problems: www.blahblah.com versus blahblah.com I guess I was hoping there was some server-level redirect. I'm not sure how I would put the meta redirect in all my pages. My app is a complicated mess (my fault - my lack of skill). The issue is that my users are clicking a PayPal Subscribe button, which sends them off to PayPal. Part of the hidden information sent to PayPal when the user clicks that button is the return path. So if user comes to blahblah.com, clicks the Subscribe button it sends them to PayPal with a return path of www.blahblah.com (because that's what I'm telling PayPal to do.) I'm thinking now I can just look at the URL they're at now and set my PayPal return path dynamically... If they're here as blahblah.com, I make sure to tell the PayPal form that the return path is blahblah.com. If www, then return to www... Thanks for your suggestion though. I can even continue using PayPal's encrypted buttons - I'll just make two buttons, one for www, and theother for just blahblah, and display the appropriate button based on current situation. Still, I think I was hoping that somewhere in server.xml I could say all requests for blahblah.com should be mapped to www.blahblah.com. Thanks all. On 8/16/05, Peter Rossbach [EMAIL PROTECTED] wrote: Hey Michael, I look inside the tomcat source and find that we don't set the cookie hostname attribute. That means that the calling client/browser must made the hostname handling. I also thing the redirect way is currently right direction. Peter Paul Singleton schrieb: Michael Teter wrote: If my users come to blahblah.com, then go away, then return, they get a new session id (for www.blahblah.com). But if they come to www.blahblah.com, leave, and return (via link from external site), they keep the same session. I finally discovered that the browser (Firefox in this case) ends up with two different session cookies - one for www.blahblah.com and one for blahblah.com. this behaviour seems reasonable to me... What's the right thing to do to solve this? it doesn't need solving, just accepting :-) but assuming you want www.blahblah.com and blahblah.com to behave (session-wise) like one domain, which they aren't, you could redirect (client-side) from www.blahblah.com (which IMHO is the redundant/obsolete/legacy domain) to blahblah.com, which allocates sessions and dishes out cookies. i.e. www.blahblah.com is a static site which just serves e.g. html head title%= a.appTitle %: redirection page/title meta http-equiv=refresh content=0;url=http://blahblah.com; / /head body onLoad=window.location.replace('http://blahblah.com') !-- optional if you are not redirected... blurb -- /body html NB I haven't actually *tried* this :-) Paul Singleton - 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: session problems: www.blahblah.com versus blahblah.com
Ignore my last mail, this way is better. Ta Matt -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: 16 August 2005 13:42 To: Tomcat Users List Subject: Re: session problems: www.blahblah.com versus blahblah.com I would imagine the other way to do this is to implement a filter looking for people trying to reach blahblah.com and returning a 302 redirect to www.blahblah.com. That would give them all the proper cookie from the start and could be implemented accross all your webapp resources at once. --David Michael Teter wrote: I guess I was hoping there was some server-level redirect. I'm not sure how I would put the meta redirect in all my pages. My app is a complicated mess (my fault - my lack of skill). The issue is that my users are clicking a PayPal Subscribe button, which sends them off to PayPal. Part of the hidden information sent to PayPal when the user clicks that button is the return path. So if user comes to blahblah.com, clicks the Subscribe button it sends them to PayPal with a return path of www.blahblah.com (because that's what I'm telling PayPal to do.) I'm thinking now I can just look at the URL they're at now and set my PayPal return path dynamically... If they're here as blahblah.com, I make sure to tell the PayPal form that the return path is blahblah.com. If www, then return to www... Thanks for your suggestion though. I can even continue using PayPal's encrypted buttons - I'll just make two buttons, one for www, and theother for just blahblah, and display the appropriate button based on current situation. Still, I think I was hoping that somewhere in server.xml I could say all requests for blahblah.com should be mapped to www.blahblah.com. Thanks all. On 8/16/05, Peter Rossbach [EMAIL PROTECTED] wrote: Hey Michael, I look inside the tomcat source and find that we don't set the cookie hostname attribute. That means that the calling client/browser must made the hostname handling. I also thing the redirect way is currently right direction. Peter Paul Singleton schrieb: Michael Teter wrote: If my users come to blahblah.com, then go away, then return, they get a new session id (for www.blahblah.com). But if they come to www.blahblah.com, leave, and return (via link from external site), they keep the same session. I finally discovered that the browser (Firefox in this case) ends up with two different session cookies - one for www.blahblah.com and one for blahblah.com. this behaviour seems reasonable to me... What's the right thing to do to solve this? it doesn't need solving, just accepting :-) but assuming you want www.blahblah.com and blahblah.com to behave (session-wise) like one domain, which they aren't, you could redirect (client-side) from www.blahblah.com (which IMHO is the redundant/obsolete/legacy domain) to blahblah.com, which allocates sessions and dishes out cookies. i.e. www.blahblah.com is a static site which just serves e.g. html head title%= a.appTitle %: redirection page/title meta http-equiv=refresh content=0;url=http://blahblah.com; / /head body onLoad=window.location.replace('http://blahblah.com') !-- optional if you are not redirected... blurb -- /body html NB I haven't actually *tried* this :-) Paul Singleton - 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] -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: 607.255.9571 Fax: 607.255.0939 - 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: session problems: www.blahblah.com versus blahblah.com
I'm not sure if there is a technical way to do this or not as it's the browser that saves the cookie based on the current URL. The way I would do this is to not allow the user to create a session in one of them in the first place. ie, if they browse to blahblah.com then just redirect them to www.blahblah.com so that whenever they are interacting with the webapp. Ta Matt -Original Message- From: Michael Teter [mailto:[EMAIL PROTECTED] Sent: 15 August 2005 21:05 To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: session problems: www.blahblah.com versus blahblah.com I tried that, but it's not working. I tried: Host name=blahblah.com Aliaswww.blahblah.com/Alias /Host and I also tried: Host name=www.blahblah.com Aliasblahblah.com/Alias /Host Both ways, I still got a session cookie associated with the name the user entered as the address. If the user then changed the address to www., it created a new session and session cookie (with the new name). On 8/15/05, Peter Rossbach [EMAIL PROTECTED] wrote: Hmm, I thing a host alias at for your tomcat configuration was helpfull :-) Host name=blahblah.com Aliaswww.blahblah.com/Alias /Host Peter Michael Teter schrieb: Howdy. I'm having some problems with sessions. If my users come to blahblah.com, then go away, then return, they get a new session id (for www.blahblah.com). But if they come to www.blahblah.com, leave, and return (via link from external site), they keep the same session. I finally discovered that the browser (Firefox in this case) ends up with two different session cookies - one for www.blahblah.com and one for blahblah.com. What's the right thing to do to solve this? Thanks much. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: can't start tomcat as user
That is operating system dependent. On linux you will have to write a script and put it in /etc/rc.d/init.d then symlink it from the relevant run level directories. Ta Matt -Original Message- From: dummy [mailto:[EMAIL PROTECTED] Sent: 21 July 2005 04:09 To: Tomcat Users List Subject: RE: can't start tomcat as user Then how to start automatically at boot time ? -Original Message- From: Luis Durán [mailto:[EMAIL PROTECTED] Sent: Thursday, July 21, 2005 9:33 AM To: Tomcat Users List Subject: Re: can't start tomcat as user dummy wrote: Hi, Got problem starting Tomcat as user tomcat. No problem starting it under root. Any idea why ? On Linux, only root can open ports below 1024 (included). You must compile the jsvc program and setup a tomcat user and it will start tomcat as root and then change the effective user before receiving requests. I hope this help. (jsvc is in the bin folder, i think is originally compressed) -- Luis Edgardo Durán Lebis Soporte Técnico y Sistemas http://mipagina.cantv.net/elebis [EMAIL PROTECTED] 0416-7580991 - 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 memory question
Both active sessions and the number of webapps will fill up your heap. Within 64MB I think you will struggle to run 15-20 webapps but without knowing the exact size of them all and the amount of hits you expect I couldn't say for sure. Ta Matt -Original Message- From: Charl Gerber [mailto:[EMAIL PROTECTED] Sent: 14 June 2005 10:33 To: tomcat-user@jakarta.apache.org Subject: Tomcat memory question My tomcat instance is now running 10 webapps and will most likely get more, in the region of 15. My service provider configures my server with 64MB heap space. Question is, what affects the memory usage? Purely the number of hits (ie active sessions) or the number of webapps as well? Should my server run ok with 64MB heap memory for say 15 or maybe even 20 webapps? The apps itself are rather small. Thanks. Charl - 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: [Q] when to share jars
They need to be in common/lib when they need to be accessed by tomcat itself as well as the webapps. shared/lib would just be the webapps. I don't know about struts and jstl but you'd more than likely need a log4j in each webapp to get seperate webapp logging. Ta Matt -Original Message- From: Charl Gerber [mailto:[EMAIL PROTECTED] Sent: 14 June 2005 10:57 To: tomcat-user@jakarta.apache.org Subject: [Q] when to share jars When do you share jars (struts, log4j, jstl, etc) for webapps in the common/lib directory and when does each app need its own copy of the jars? Log4j we've found by trail and error is better to have a jar per webapp, as the loggers seems to overwrite each other, but which commonly used jars (struts, jstl) can be shared? Thanks Charl - 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 memory question
You will get an OutOfMemoryException for that particular request, all requests for memory will fail until some memory is freed up so it's likely that when you get to the max, some/many/all of your users may be affected. From the sounds of it 128MB would be more appropriate to your situation but I personally would write a JSP or servlet to return the memory useage at any given time. That way you can keep an eye on it. Ta Matt -Original Message- From: Charl Gerber [mailto:[EMAIL PROTECTED] Sent: 14 June 2005 10:49 To: Tomcat Users List Subject: RE: Tomcat memory question If Tomcat does run out of memory, what will happen? Will a user just temporarily not be able to access the apps until another session becomes available, or will it crash and I have to restart? Will 128MB be fine? --- Dale, Matt [EMAIL PROTECTED] wrote: Both active sessions and the number of webapps will fill up your heap. Within 64MB I think you will struggle to run 15-20 webapps but without knowing the exact size of them all and the amount of hits you expect I couldn't say for sure. Ta Matt -Original Message- From: Charl Gerber [mailto:[EMAIL PROTECTED] Sent: 14 June 2005 10:33 To: tomcat-user@jakarta.apache.org Subject: Tomcat memory question My tomcat instance is now running 10 webapps and will most likely get more, in the region of 15. My service provider configures my server with 64MB heap space. Question is, what affects the memory usage? Purely the number of hits (ie active sessions) or the number of webapps as well? Should my server run ok with 64MB heap memory for say 15 or maybe even 20 webapps? The apps itself are rather small. Thanks. Charl - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where can I download the admin package?
Although Tomcat doesn't include the httpd server it can itself display web pages so depending on what you are doing it may be enough. Ta Matt -Original Message- From: egan0019 [mailto:[EMAIL PROTECTED] Sent: 31 May 2005 16:30 To: Tomcat Users List Subject: Re: Where can I download the admin package? I'm trying to beat Steve Kirk to the punch! There is an admin package .zip or tar.gz for the 5.x series available from a link on the following page: http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi Tomcat doesn't include apache. On 31 May 2005, Yuhui Liu wrote: Hi, there, I got a message below so I just want to know where can I download the admin package. Suppose it's a java package? Or a standard .exe file need to run? == dump == Tomcat's administration web application is no longer installed by default. Download and install the admin package to use it. == dump == Besides, I also want to know if tomcat include apache httpd already so that I needn't to install another apache server, right? Thanks. Calvin _ Do You Yahoo!? ÏÓÓÊÏä̫С£¿ÑÅ»¢µçÓÊ×ÔÖúÀ©ÈÝ£¡ http://cn.rd.yahoo.com/mail_cn/tag/10m/*http://cn.mail.yahoo.com/event/10m. ht ml - 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: Class not found
Is it in the lib directory of WEB-INF or just in the root of it. You should put it in the lib sub-directory -Original Message- From: Ram Sriram [mailto:[EMAIL PROTECTED] Sent: 31 May 2005 17:52 To: Tomcat Users List Subject: Re: Class not found That didn't work. Is there any configuration in Tomcat that needs to know the location of Classes12.zip? Tim Funk wrote rename classes12.zip to classes12.jar -Tim Ram Sriram wrote: Hi, I am using Oracle JDBC Thin Driver from classes12.zip. My code is not finding the class; I have the path for the zip in the environment variable, I have the zip file in WEB-INF in ROOT. Do I have to do anything in any of the Tomcat config files for the runtime to locate the class. - 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: Error at tomcat start up
The error may be in your main tomcat web.xml rather than your webapps as it appears to be at line 331 and your webapp web.xml does not have that many lines. Ta Matt -Original Message- From: tushar S Kulkarni [mailto:[EMAIL PROTECTED] Sent: 21 May 2005 19:10 To: tomcat-user@jakarta.apache.org Subject: Error at tomcat start up Hi All, I am getting following error at tomcat start up. Nov 6, 2000 3:27:04 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', retur nNull=true Nov 6, 2000 3:27:13 PM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 331 column 11: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,fil ter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-ma pping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-re f*). org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter*,filter- mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welco me-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-const raint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un known Source) at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown S ource) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement( Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.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:1548) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo nfig.java:282) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63 9) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi g.java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3 587) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80 7) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep loyer.java:307) at org.apache.catalina.core.StandardHost.install(StandardHost.java:788) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j ava:559) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401 ) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java :358) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) at org.apache.catalina.core.StandardHost.start(StandardHost.java:754) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363 ) at org.apache.catalina.core.StandardService.start(StandardService.java:4 97) at org.apache.catalina.core.StandardServer.start(StandardServer.java:219 0) Here is web.xml ?xml version=1.0? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-nameJavaServer Faces Guess Number Sample Application /display-name description JavaServer Faces Guess Number Sample Application /description context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param context-param param-namejavax.faces.application.CONFIG_FILES/param-name
RE: Clustering Tomcat
It looks like your machine is unable to send a multicast message. It will be an operating system configuration. Ta Matt -Original Message- From: Ben [mailto:[EMAIL PROTECTED] Sent: 21 May 2005 02:11 To: Tomcat Subject: Clustering Tomcat Hi I'm trying to configure clustering of 2 Tomcat servers on a single CentOS 4 machine. When I start the first Tomcat, I get error messages like this in the catalina.out log file: org.apache.catalina.cluster.mcast.McastServiceImpl$SenderThread run WARNING: Unable to send mcast message. java.net.SocketException: Operation not permitted at jrockit.net.SocketNativeIO.send(Ljava.io.FileDescriptor;[BIILjava.net.InetAddress;II)I(Unknown Source) at java.net.PlainDatagramSocketImpl.send(Ljava.net.DatagramPacket;[BI)V(Unknown Source) at java.net.PlainDatagramSocketImpl.send(Ljava.net.DatagramPacket;)V(Unknown Source) at java.net.DatagramSocket.send(DatagramSocket.java:612) at org.apache.catalina.cluster.mcast.McastServiceImpl.send(McastServiceImpl.java:228) at org.apache.catalina.cluster.mcast.McastServiceImpl$SenderThread.run(McastServiceImpl.java:264) I am using JRockit 5.0_02 and Tomcat 5.5.9. Where can I find more information about this error? Thanks, Ben - 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: No such list! s (AM I THE ONLY ONE GETTING THIS SPAM)?
no you are not the only one -Original Message- From: Guy Katz [mailto:[EMAIL PROTECTED] Sent: 17 May 2005 06:47 To: Tomcat Users List Subject: RE: No such list! s (AM I THE ONLY ONE GETTING THIS SPAM)? am i the only one getting this annoying spam from the tomcat lisy? -Original Message- From: s [mailto:[EMAIL PROTECTED] Sent: Monday, May 16, 2005 10:32 PM To: tomcat-user@jakarta.apache.org Subject: No such list! s Valid Lists New Atlanta List Server --- There is no list by that name on this server. Available lists are: bluedragon-interest servletexec-interest jturbo-interest - 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: server opts
What is the platform and error message? You haven't given us much to go on. -Original Message- From: Sergey Livanov [mailto:[EMAIL PROTECTED] Sent: 14 May 2005 18:56 To: Tomcat users Subject: server opts I have loaded 5.5.9 server. I want to set JVM options for Tomcat. When I add -server -Xmx256m option server does not start. 680 Mb memory is free on the server. Thanks you in advance . regards, Sergey mailto:[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: Jakarta Tomcat + Windows + PHP
The simple thing that you have missed is that you are following instructions to add PHP to Apache HTTPD, not Apache Tomcat. I think you can install PHP in Tomcat but I don't personally know how. Apache is an organisation, which makes many applications, it is not the name of a particular product although when you hear apache you usually think of the webserver (httpd). An install of Tomcat will not install httpd as it is a different application. -Original Message- From: Janet Fraser [mailto:[EMAIL PROTECTED] Sent: 11 May 2005 09:49 To: tomcat-user@jakarta.apache.org Subject: Jakarta Tomcat + Windows + PHP Hi All, I'm running Jakarta Apache Tomcat 5.0.19 (successfully) on a Windows 2003 Server. I've been trying to figure out how to add PHP to the mix, but everything I've read says that I need to add a LoadModule directive to my httpd.conf and I don't have one. I didn't do the install for Tomcat, but I'm assuming that the Jakarta install doesn't create all those seperate Apache folders and files. Have I missed something really simple? Thanks Janet Fraser - 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: Jakarta Tomcat + Windows + PHP
A quick google brought back http://wiki.apache.org/jakarta-tomcat/UsingPhp. Should get you started. Ta Matt -Original Message- From: Janet Fraser [mailto:[EMAIL PROTECTED] Sent: 11 May 2005 10:02 To: Tomcat Users List Subject: Re: Jakarta Tomcat + Windows + PHP Matt, Thanks - I guess i knew that. Maybe my question should have been simpler, ie How do I install PHP to Tomcat? Dale, Matt wrote: The simple thing that you have missed is that you are following instructions to add PHP to Apache HTTPD, not Apache Tomcat. I think you can install PHP in Tomcat but I don't personally know how. Apache is an organisation, which makes many applications, it is not the name of a particular product although when you hear apache you usually think of the webserver (httpd). An install of Tomcat will not install httpd as it is a different application. -Original Message- From: Janet Fraser [mailto:[EMAIL PROTECTED] Sent: 11 May 2005 09:49 To: tomcat-user@jakarta.apache.org Subject: Jakarta Tomcat + Windows + PHP Hi All, I'm running Jakarta Apache Tomcat 5.0.19 (successfully) on a Windows 2003 Server. I've been trying to figure out how to add PHP to the mix, but everything I've read says that I need to add a LoadModule directive to my httpd.conf and I don't have one. I didn't do the install for Tomcat, but I'm assuming that the Jakarta install doesn't create all those seperate Apache folders and files. Have I missed something really simple? Thanks Janet Fraser - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat restart?
This is not possible as even if it could be shut down then the servlet will no longer exist to restart it. The only way would be for the servlet to notify some external process that the tomcat needs to be restarted and the external process will do the stopping and starting. Ta Matt -Original Message- From: Beton, Richard [mailto:[EMAIL PROTECTED] Sent: 10 May 2005 10:56 To: Tomcat Users List Subject: tomcat restart? Is it possible to write a servlet that can restart Tomcat 5.5? I am loading native library code and this has to be in the shared/lib area for the webapp to be restartable (if it's in the webapp/WEB-INF/lib then restarting the webapp fails). However, I want to be able to install a new version of my code, then restart Tomcat and then my webapp will pick up the new version. Rick refs: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html http://jakarta.apache.org/tomcat/tomcat-5.5-doc/RELEASE-NOTES.txt -- Visit our website at www.roke.co.uk Roke Manor Research Ltd, Roke Manor, Romsey, Hampshire SO51 0ZN, UK. The information contained in this e-mail and any attachments is proprietary to Roke Manor Research Ltd and must not be passed to any third party without permission. This communication is for information only and shall not create or change any contractual relationship. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
activation.jar / Tomcat 5.5 / JDK 5
Hi, I've seen this mentioned before but no solution. I'm trying to use javamail with the above set up but I keep getting java.lang.NoClassDefFoundError: javax/activation/DataSource. I have the activation.jar and have tried it in common/lib, shared/lib and WEB-INF/lib with no success and it is not a permissions problem. Is it possible that this jar does not work with JDK 1.5? Any ideas on how to solve my problem as it's holding up my migration to Tomcat 5.5 Ta Matt
RE: activation.jar / Tomcat 5.5 / JDK 5
Have done that. Only ever had one copy of the jar. Ta -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 06 May 2005 11:15 To: Tomcat Users List Subject: RE: activation.jar / Tomcat 5.5 / JDK 5 Hi, Make sure you only have activation.jar and mail.jar in common/lib and not in your web application lib folder. Allistair -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: 06 May 2005 11:10 To: Tomcat Users List (E-mail) Subject: activation.jar / Tomcat 5.5 / JDK 5 Hi, I've seen this mentioned before but no solution. I'm trying to use javamail with the above set up but I keep getting java.lang.NoClassDefFoundError: javax/activation/DataSource. I have the activation.jar and have tried it in common/lib, shared/lib and WEB-INF/lib with no success and it is not a permissions problem. Is it possible that this jar does not work with JDK 1.5? Any ideas on how to solve my problem as it's holding up my migration to Tomcat 5.5 Ta Matt FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - 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: activation.jar / Tomcat 5.5 / JDK 5
I hadn't unpacked it but use the same jar with no problems in Tomcat 5.0.2x and JDK 1.4.2. I did just now and it is there. shared/lib is empty. I've also searched through the JDK directory and it's not there either. -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 06 May 2005 11:36 To: Tomcat Users List Subject: RE: activation.jar / Tomcat 5.5 / JDK 5 Have you unpacked the activation.jar you have and verified this class exists ;) You've not left anything in shared/lib or the JRE hasn't anything that would find activation on your classpath no? -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: 06 May 2005 11:27 To: Tomcat Users List Subject: RE: activation.jar / Tomcat 5.5 / JDK 5 Have done that. Only ever had one copy of the jar. Ta -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 06 May 2005 11:15 To: Tomcat Users List Subject: RE: activation.jar / Tomcat 5.5 / JDK 5 Hi, Make sure you only have activation.jar and mail.jar in common/lib and not in your web application lib folder. Allistair -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: 06 May 2005 11:10 To: Tomcat Users List (E-mail) Subject: activation.jar / Tomcat 5.5 / JDK 5 Hi, I've seen this mentioned before but no solution. I'm trying to use javamail with the above set up but I keep getting java.lang.NoClassDefFoundError: javax/activation/DataSource. I have the activation.jar and have tried it in common/lib, shared/lib and WEB-INF/lib with no success and it is not a permissions problem. Is it possible that this jar does not work with JDK 1.5? Any ideas on how to solve my problem as it's holding up my migration to Tomcat 5.5 Ta Matt FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat j2sdk and image
I'd be surprised if anyone could with the scant information you have provided. You haven't even mentioned the image library that you are using. I would suggest that you get a profiler or debugger in order to work out what your code is doing at the time that it is generating the image and which methods are taking all the time. Ta Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 02 May 2005 16:33 To: tomcat-user@jakarta.apache.org Subject: Tomcat j2sdk and image Hi, I have a java application who generate image. On Sun Solaris 8, It works fine with Tomcat-4.0.4 and jdk-1.3.1 It was the same with Tomcat-4.1.18 and jdk-1.4.1 But when I use Tomcat-4.1.30 with jdk-1.4.2 or Tomcat-5.0.28 with jdk-1.4.1 or jdk-1.4.2, the image make a long time to be generating. What is the problem ? Can somebody help me ? AL - 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: Catalina.out eats my harddisk space
Under normal use very little appears in catalina.out. What exactly is filling up the file? I would suggest that it is application output or errors and that you need to sort that out. I would also suggest that you use a proper logging package like log4j which will allow you to have rotatable log files which are easier to manage. Ta Matt -Original Message- From: Rajasekar [mailto:[EMAIL PROTECTED] Sent: 29 April 2005 11:05 To: tomcat-user@jakarta.apache.org Subject: Catalina.out eats my harddisk space Hi, I am facing a *catalina.out log* file problem in tomcat5. It eats my harddisk space like anythink. My harddisk size is 80GB hard disk. Everyday i have to remove the catalina.out file. the nextday it fills the harddisk. and i cann't run tomcat. What could be the problem. Please help me if anybody knew to this issue. Regards Rajasekar V.R - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: unable to send a java mail
The problem appears to be with your SMTP server and not java. Looks like you might need to open it up a bit to relaying. Ta Matt -Original Message- From: vishwam [mailto:[EMAIL PROTECTED] Sent: 28 April 2005 14:18 To: Tomcat Users List Subject: unable to send a java mail iam trying to send a simple email using javamailAPI but iam getting the following error sun.net.smtp.SmtpProtocolException: 553 Sorry, that domain isn't in my list of allowed rcpthosts. at sun.net.smtp.SmtpClient.issueCommand(Unknown Source) at sun.net.smtp.SmtpClient.toCanonical(Unknown Source) Iam trying for last 4 days ,but i couldn't solve this problem it is important ,bcos iam using it in my project i'll be grateful to someone who solves this problem thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: All threads (250) are currently busy
You can use the tomcat manager application to find out which threads are busy. And secondly send a SIGHUP to the JVM and it will do a thread dump allowing you to work out what your threads are doing. You possibly have some kind of thread leak causing you to run out. Ta Matt -Original Message- From: Paul Grimwood [mailto:[EMAIL PROTECTED] Sent: 26 April 2005 21:27 To: Tomcat Users List Subject: Re: All threads (250) are currently busy This post has gone quiet, yet this is still a major problem for us in out live environment. Does anyone know the reason/solution (please see original post)? If so, please be more expansive than saying 'if you set it up right, it will work'. cheers Paul Patty O'Reilly [EMAIL PROTECTED] 21/04/2005 11:50 Please respond to Tomcat Users List To: Tomcat Users List tomcat-user@jakarta.apache.org cc: Subject:Re: AW: All threads (250) are currently busy Can you share your apache connector config? On Wed, 20 Apr 2005, Zsolt Koppany wrote: Date: Wed, 20 Apr 2005 11:08:33 +0200 From: Zsolt Koppany [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Subject: AW: All threads (250) are currently busy We had the same problem, but after configuring the apache connector correctly the problem disappeared. Zsolt -Ursprüngliche Nachricht- Von: Paul Grimwood [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 20. April 2005 06:07 An: tomcat-user@jakarta.apache.org Betreff: All threads (250) are currently busy Tomcat hangs intermittently (1 to 10 days) with the following message in catalina.out 20/04/2005 13:48:09 org.apache.tomcat.util.threads.ThreadPool logFull SEVERE: All threads (250) are currently busy, waiting. Increase maxThreads (250) or check the servlet status We are running tomcat 5.5.7 on jdk1.5.0_02 under Redhat Linux Fedora Core 2 against an Oracle9 DB. I have seen various posts to this with suggestions including setting Linux threads with LD_ASSUME_KERNEL (tried but problem still exists) and setting connection timeout in server.xml from 0 to 6 (but ours is set at 2 already). And we have already upgraded to latest Tomcat and JRE to no avail. Despite reviewing the mailing list over the past 18 to 24 months, i am none the wiser. The problem started around the time we deployed the code onto a new server running a later Linux version but this could be a red herring and I suspect it is a database connection issue. Has anyone got any ideas? - 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] - 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: out of memory error
Or you simply don't have enough memory allocated to the JVM and you need to increase it. -Original Message- From: Mark Benussi [mailto:[EMAIL PROTECTED] Sent: 26 April 2005 15:41 To: [EMAIL PROTECTED]; tomcat-user@jakarta.apache.org Subject: RE: out of memory error I hit this issue today, for a host of reasons. You are getting this error because the ammount of memory allocated to the JVM running Tomcat has been taken up. This ould be for the following reasons: You are doing some large database reads without using a methodology to read in batches. You are storing large objects in the request or session. You may have memory leaks (A term I hate because it implies that there is a problem in the underlying system but what it actually means is you are keeping references to objects you no longer require). Original Message Follows From: Sergey Livanov [EMAIL PROTECTED] Reply-To: Sergey Livanov [EMAIL PROTECTED] To: Tomcat users tomcat-user@jakarta.apache.org Subject: out of memory error Date: Tue, 26 Apr 2005 17:10:02 +0300 Pls help me to investigate type of error. Sometimes pages are not downloaded. We have looked into Log file and found out a message out of memory. When is this error appeared and what do we have to do to avoid this type of error? 2005-04-25 08:15:10 ApplicationDispatcher[] Servlet.service() for servlet jsp threw exception java.lang.OutOfMemoryError 2005-04-25 08:15:11 StandardWrapperValve[action]: Servlet.service() for servlet action threw exception java.lang.OutOfMemoryError -- regards, Sergey mailto:[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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Clustering application scope replication
Only objects that you put in the session would be a session attribute. Any other classes are irrelevant whether they are serializable or not. Ta Matt -Original Message- From: J. Ryan Earl [mailto:[EMAIL PROTECTED] Sent: 22 April 2005 16:24 To: Tomcat Users List; Lionel Farbos Subject: RE: Clustering application scope replication Let me rephrase the question, how does Tomcat determine what is a session attribute. What if there are classes that implement java.io.Serializable that have nothing to do with session attributes? -ryan -Original Message- From: J. Ryan Earl [mailto:[EMAIL PROTECTED] Sent: Friday, April 22, 2005 10:19 AM To: Lionel Farbos; Tomcat Users List Subject: RE: Clustering application scope replication I've read that document many times, and that does not answer my question. -ryan -Original Message- From: Lionel Farbos [mailto:[EMAIL PROTECTED] Sent: Friday, April 22, 2005 9:50 AM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: Clustering application scope replication As it is explained in the doc : All your session attributes must implement java.io.Serializable On Fri, 22 Apr 2005 09:44:01 -0500 J. Ryan Earl [EMAIL PROTECTED] wrote: How does Tomcat know what to serialize? Does it just use the Reflection package and serialize out -everything- that implements java.io.Serializable? -ryan -Original Message- From: Lionel Farbos [mailto:[EMAIL PROTECTED] Sent: Friday, April 22, 2005 9:11 AM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: Clustering application scope replication Hi For your needs, you can use session replication (http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cluster-howto.html) or your own mechanisms and tables with datas in a database ... Regards. On Fri, 22 Apr 2005 15:15:54 +0200 Joakim Ahlén [EMAIL PROTECTED] wrote: Ok, too bad. Is there any way of storing objects if we want them in cluster scope? An ugly hack would be to use one single HttpSession with a special session-id to store global objects, and somehow fetch objects from within this HttpSession from inside requests that belongs to other sessions. I can't see how this could be done though, since request.getSession() can't fetch other sessions than its own. This would probably also have to include some tomcat specific magic which i wouldn't want. Any help is appreciated on how to handle this problem! Thanks Joakim On Fri, Apr 22, 2005 at 08:07:21AM -0500, Jess Holle wrote: The servlet spec says this data is local to a given JVM. I suppose a servlet engine could expand beyond the spec, but I'd be surprised if Tomcat did here. Joakim Ahlén wrote: Hi! We have a cluster of two tomcat 5.5.9-machines using session replication. However, we also have data in application scope (set with getServletContext().setAttribute(...)) which as far as i have found in the docs, is not replicated. Is there any way to accomplish this with tomcat? If not, is there any plan to develop support for it? Do other application servers have support for this? Hope you can help me. Regards Joakim - 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] - 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] - 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: Heap not expanding beyond -Xms512m
This is expected behaviour. The heap will not grow if the memory required can be gained through a garbage collection. The heap will only grow if after a garbage collection it still cannot allocate the required memory or is over a certain percentage (I forget what the default is). I would suggest that you don't in fact need 512MB if your app runs fine with no OOM in 512MB. If you really want to use the full 1GB the you'll have to use -Xms as you suggested. Ta Matt -Original Message- From: Guillaume Lahitette [mailto:[EMAIL PROTECTED] Sent: 20 April 2005 13:54 To: tomcat-user@jakarta.apache.org Subject: Heap not expanding beyond -Xms512m Hello Tomcat-oids, I'd really appreciate any help with this...Thanks in advance. We've been running performance tests against Tomcat 4.1.26 on Linux and Windows. We've tuned heap sizes to -Xms512m -Xmx1024m. Monitoring the JVM memory usage with a daemon thread calling Runtime.getRuntime().freeMemory() / totalMemory() / maxMemory(), we've noticed memory was never expanded beyond 512MB. Instead, when usage was getting close to 512MB, we could see the garbage collector kick in. We never got OOM errors. Can anyone share experiences about this? Do I have to use -Xms1024m -Xmx1024m (which seems to defeat the purpose of having ms and mx...)? Guillaume - 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: Multiple tomcat instances
yes, just modify the server.xml on the 2nd instance so it runs on different ports. Ta Matt -Original Message- From: Kelly, Steve [mailto:[EMAIL PROTECTED] Sent: 15 April 2005 10:33 To: tomcat-user@jakarta.apache.org Subject: Multiple tomcat instances Hi, Is it possible to run multiple instances of tomcat on the same server, for example to support production and test environments ? Thanks in advance, Steve. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5.5 help
I've had this problem with the activation jar required for emailing. My suspicion is that it is from a 1.4 J2EE so there is some funniness going on there but I haven't been able to solve it yet. Would be interested in the answer to this. Ta Matt -Original Message- From: dummy [mailto:[EMAIL PROTECTED] Sent: 13 April 2005 10:14 To: 'Tomcat (E-mail)' Subject: tomcat 5.5 help Importance: High Problem with tomcat 5.5. Application running on tomcat 5.0 is fine but when run on tomcat 5.5 alot of problem appeared like noclassfound etc. Why is it so ? Anybody have the same problem ? How to solve ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Requirements
There is no way for anyone to even guess at that without benchmarks of your application. I'd suggest you use Jmeter and simulate users to see how it affects a server that you have already. 3000 is a lot of users so perhaps some kind of clustered environment should be considered. -Original Message- From: Bob [mailto:[EMAIL PROTECTED] Sent: 12 April 2005 18:31 To: tomcat-user@jakarta.apache.org Subject: Tomcat Requirements I read much about memory usage and processes but nobody can say how much memory I need! I have to define the budget for the environment for a solution to serve 1000-3000 concurrent users. Which hardware should I buy, XEON Server Processor(s)? Ram? I want to use Linux. Please give me an hint. Thanks Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Connector on Solaris 10
Are you saying that you can't get gcc to work? This would be why you are having difficulty compling JK. Get gcc to work then worry about the connector. Ta Matt -Original Message- From: jefou [mailto:[EMAIL PROTECTED] Sent: 04 April 2005 17:00 To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Connector on Solaris 10 Hello, I have setup Solaris 10 OS on AMD64 and I am trying to build the JK connector for Apache2 with Tomcat5, but I am not having any success at all with neither the Solaris nor the GNU gcc compiler. This is the only missing piece for my 64-bit java framework. I would hate to have Tomcat serve my static content or use a different OS just because of this problem. Did anyone compile the JK connector on a i86 64-bit architecture? Does anyone know where I could find a compiled version of the jk_mod.so for AMD64 solaris or where I could get more information? Much appreciated, Jeff Sent via the YourWebPro EMail system at yourwebpro.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: Clustering question
Yes this is a problem. All objects contained within a serializable object must in turn be serializable themselves. -Original Message- From: Steven Pannell [mailto:[EMAIL PROTECTED] Sent: 01 April 2005 12:33 To: 'tomcat-user@jakarta.apache.org' Subject: Clustering question Hi, I have setup two tomcat 5.5.7 servers which are clustered. Everything is working and the basic session is replication. However, when I add my own custom java object to the session this is not replicated. I have made it Serializable but this object also contains other java objects which are not serializable. Is this a problem? Is there anything special I need to consider to get my custom session objects to replicate?? Thanks, Steve. - 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: possibly stupid question
Are you running it as a service? If so you may find that the output is going to stdout.log Ta Matt -Original Message- From: teknokrat [mailto:[EMAIL PROTECTED] Sent: 30 March 2005 10:54 To: tomcat-user@jakarta.apache.org Subject: possibly stupid question I am running tomcat 5.5 on windows XP. There is no catalina.out file being produced. Is this usual? How do i get a file of of everything going to stdout? thanks - 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: jk2 for Apache2 and Tomcat 4
1.2.6 is the latest and should work with Apache 2 so you don't have to go back to apache 1. Ta Matt -Original Message- From: Paul Puschmann [mailto:[EMAIL PROTECTED] Sent: 14 March 2005 12:28 To: Tomcat Users List Subject: Re: jk2 for Apache2 and Tomcat 4 Mladen Turk wrote: Paul Puschmann wrote: Hi, we want to use Apache2 (2.0.53) as a frontend for out Tomcat (4.1.31) and don't get the right configuration for our jk2 (2.0.4). This all runs with Java 1.4.2_06 on Debian Sarge x86. Do not use JK2. Use JK instead. See: http://jakarta.apache.org/tomcat/connectors-doc/news/20041100.html#20041115.1 JK2 is not supported, neither it will be. Reasons are many, but the main is that mod_jk is simply a better product then mod_jk2 ever was. Okay, I didn't notice this at all. Thanks! Well, i should have some tries now with jk1 (1.2.5). Oh, and I have to use Apache now instead of Apache2, of course. If you have some hints or howto's regarding my problem... Paul - 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: I'm using a linux server (fedora core 2) which has
Install the latest from the 1.2.X line as JK2 is not longer being developed. I thought the latest was higher but I was obviously wrong. You can get 1.2.8 at http://jakarta.apache.org/site/downloads/downloads_tomcat-connectors.cgi -Original Message- From: Pete Eakle [mailto:[EMAIL PROTECTED] Sent: 13 March 2005 05:50 To: tomcat-user@jakarta.apache.org Subject: I'm using a linux server (fedora core 2) which has apache 2.0.51 installed, as well as Tomcat 5.0, but Tomcat only runs standalone and I would like to hook it up as Apache's java server. But I'm not sure what version of mod_jk to use -- I believe it needs to be a matched set with the apache version? Anyone know what version of mod_jk I should install, or how to find out, and possibly where to download it? Thanks. -Pete - 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: Too many open files exception
Sounds like you need to up the number of open files allowed at the operating system level. Ta Matt -Original Message- From: Moderate Extremist [mailto:[EMAIL PROTECTED] Sent: 11 March 2005 12:38 To: tomcat-user@jakarta.apache.org Subject: Too many open files exception A coworker of mine had a Tomcat-driven site switched over to JVM 1.4.2 from JVM 1.3.1. He got an email from the client about two hours later saying they were getting a bunch of errors: Internal Servlet Error: javax.servlet.ServletException: common.cException: common.cException: java.io.FileNotFoundException: /space/icrp/WEB-INF/icrp.properties (Too many open files) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:461) at _0002ferror_0002ejsperror_jsp_5._jspService(_0002ferror_0002ejsperror_jsp_5.java:187) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) ... Root cause: common.cException: common.cException: common.cException: java.io.FileNotFoundException: /space/icrp/WEB-INF/icrp.properties (Too many open files) at common.cUtils.closeConnections(cUtils.java:871) at _0002ferror_0002ejsperror_jsp_5._jspService(_0002ferror_0002ejsperror_jsp_5.java:177) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) ... After he got the email he restarted the site only to have it behave in a similar fashion over half an hour later. We scoured online with the above Java error msg to no avail. My initial thought was to peruse the Apache logs to see if there were entries that correlated to when the crashes occured and what were the resulting message; this is what I found: 143.65.99.20 - - [07/Mar/2005:20:38:51 -0500] GET /wizsearch.jsp?add=... HTTP/1.1 500 612 http://www...; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) 217.44.173.38 - - [07/Mar/2005:20:38:51 -0500] GET /abstract.jsp?SID=67466ProjectID=164428 HTTP/1.1 500 612 http://www.../projectlist.jsp?SID=67466ShowCart=false; Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-gb) AppleWebKit/125.5.5 (KHTML, like Gecko) Safari/125.12 212.174.145.126 - - [07/Mar/2005:20:38:51 -0500] GET / HTTP/1.1 500 607 - Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 169.142.1.1 - - [07/Mar/2005:20:38:51 -0500] GET /servlet/search/?CSO=5.5 HTTP/1.1 302 448 http://www.google.com/search?q=...; Mozilla/4.0 (compatible; MSIE 6.0; Windows 98) 62.128.179.3 - - [08/Mar/2005:08:23:57 -0500] GET /error.jsp?SID=68030 HTTP/1.1 500 612 http://www.../projectlist.jsp?SID=68030; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) 62.128.179.2 - - [08/Mar/2005:08:23:57 -0500] GET /error.jsp?SID=68031 HTTP/1.0 500 600 http://www.../wizsearch.jsp?add=...; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) [Mon Mar 7 20:38:51 2005] [info] [client 169.142.1.1] (32)Broken pipe: client stopped connection before rflush completed [Mon Mar 7 20:38:51 2005] [info] [client 217.44.173.38] (32)Broken pipe: client stopped connection before rflush completed [Mon Mar 7 20:38:51 2005] [info] [client 143.65.99.20] (32)Broken pipe: client stopped connection before rflush completed [Mon Mar 7 20:38:51 2005] [info] [client 212.174.145.126] (32)Broken pipe: client stopped connection before rflush completed [Tue Mar 8 08:23:57 2005] [info] [client 62.128.179.3] (32)Broken pipe: client stopped connection before rflush completed [Tue Mar 8 08:23:57 2005] [info] [client 62.128.179.2] (32)Broken pipe: client stopped connection before rflush completed I found out the rflush message normally meant that a user has pressed the browser's stop button, but to have the same messages appear simultaneously 25-30 times from the same 2-4 IPs seems kind of fishy. I did a nslookup and I don't think those IPs belong to indexing services. Has anyone seen anything like this, and if so, what does this mean? What kind of problems normally manifest itself through Too many open files messages? And is this really a Tomcat problem, Apache problem, or a problem caused by something else? BTW this site is currently using Apache 1.3.26 and Tomcat 3.2.4; would we be able to get rid of this issue if we started using Apache 2.0.xx and/or a new version of Tomcat? Thanks -- Joe Tseng I can be Googled. Therefore I am. - 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: Query on changing the path for catalina.out
The location of the catalina.out log file is not controlled from server.xml. This is other log files. Look in catalina.sh for $CATALINA_BASE/logs/catalina.out 21 and change that, to change the location of catalina.out. Ta Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 09 March 2005 12:04 To: tomcat-user@jakarta.apache.org Subject: Query on changing the path for catalina.out Hi, I need to change the default location of Catalina.out log file. So I modified the server.xml file in the conf dir in the following way: !-- Global logger unless overridden at lower levels -- Logger className=3Dorg.apache.catalina.logger.FileLogger directory=3D/var/log/tomcat prefix=3Dcatalina_log. suffix=3D.txt timestamp=3Dtrue/ But inspite of doing this my catalina.out is gets logged in CATALINA_BASE/logs/ directory. There are two scripts in tomcat/bin/ directory catalina.sh and Catalina.50.sh which are doing a= touch $CATALINA_BASE/logs/catalina.out So are my changes made in the server.xml are getting overridden by these Scripts? If yes, please let me know a way to handle this. Your inputs will be extremely helpful for me. Thanks and Regards, Mandar M Kelvekar Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OutOfMemory / JMeter / Profiler questions
Hi, Tomcat always serializes sessions on shutdown and reloads them on startup. This is the default behaviour but can be changed. You are right in thinking that sessions are serialized per context though. Are you using the standard manager or the persistent manager as they are stored differently with the persistent manager. Although you don't store anything in a session, do you perhaps instanciate it? The number of sessions you currently have can be viewed from the manager application. Ta Matt -Original Message- From: Guillaume Lahitette [mailto:[EMAIL PROTECTED] Sent: 04 March 2005 15:15 To: Tomcat Users List Subject: RE: OutOfMemory / JMeter / Profiler questions Alan, Thanks for your feedback. You got me curious here: Why does/would Tomcat reload sessions after startup? Aren't the sessions destroyed upon Tomcat shutdown? Also, I could only find a $TOMCAT_HOME/work/Standalone/localhost/prti-rpt-engine.2.4.2.b17/SESSIONS.se r, which is NOT the context I have been load testing. Sessions should be serialized per context, shouldn't they? We do not store anything in the session (our test just calls a servlet which generate a PDF report) so I can't see why the sessions would be using so much memory. But I'll definitely keep your idea in mind for other tests. I should hopefully be able to run the same tests on our staging platform and see if we get similar behaviors. Thanks for your inputs. Please keep them coming! Cheers, Guillaume -Original Message- From: Flisch, Alan [mailto:[EMAIL PROTECTED] Sent: 03 March 2005 12:17 To: Tomcat Users List Subject: RE: OutOfMemory / JMeter / Profiler questions You probably have either very large or very many sessions which Tomcat is attempting to reload on startup. Tomcat serialises sessions into files called SESSIONS.ser (in the application directories under the work dir) and then when it is restarted it attempts to reload them all. I presume this behaviour can be turned off. In terms of testing your app, you want to figure out whether you have a memory leak issue with your app, or simply that your max heap size is set too low for the load you are running. To check for memory leaks, you could run jmeter reasonably (although not too hard) excercising as much of your app as you can, repetitively and for an extended period. If it eventually keels over then you may need to investigate memory leaks with a profiler. Another possibility is that you may not be invalidating sessions and they are just being left to expire naturally. This can use up a lot of memory if you aren't careful and I supect is a quite likely source of your problems. Cheers! -Original Message- From: Guillaume Lahitette [mailto:[EMAIL PROTECTED] Sent: 03 March 2005 09:51 To: tomcat-user@jakarta.apache.org Subject: OutOfMemory / JMeter / Profiler questions Hello Tomcat'oids! We've started performance testing one of our REMOTE web apps using JMeter. We're gathering benchmark data before doing further fine tuning. Details: Win2K only have ssh + cygwin access to this remote server JDK 1.4.1_03 Tomcat 4.1.26, running as a service: a.. Use security manager 1 b.. Security policy file D:\Tomcat4\conf\catalina.policy c.. Initial heap 256 d.. Max heap 512 e.. Stack size 256 f.. JVM server Issue: We are getting OutOfMemory errors with very few threads simulated (as low as 5). More problematic, we've seen the OOM just after a Tomcat service restart! From the stack trace below, you can see we get the OOM before any of our code is executed :( Questions: a.. Anyone has seen this behavior upon Tomcat start up? b.. Anything particular to watch for in our JMeter test plan? c.. Would a profiler help? Could it profile a remote Tomcat installation? Any +/- feedback on Eclipse Profiler plug in (http://eclipsecolorer.sourceforge.net/index_profiler.html)? We'll work on gathering more data (e.g. periodic free / allocated memory dumps). Untill then, thank you for sharing your experiences, suggestions, code,...! Cheers, Guillaume javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A pplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.access$000(Applica tionFilterChain.java:98) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationF ilterChain.java:176) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati onFilterChain.java:172) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp erValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon text.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline. java:480) at
RE: OutOfMemory / JMeter / Profiler questions
Hi, This can be very useful behaviour. It means a tomcat instance can be bounced with only a short loss of service to the users. The sessions CAN be reused after a restart. Information on the session managers and how to disable persistence can be found in the tomcat documentation so it's a case of RTFM. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/manager.html should get you started. It sounds like it is not a case of session persistence or sessions not being invalidated that is causing your problem however. I recommend, as always, that you get jvmstat from sun and monitor your tomcat instance with it. It will allow you to observe the jvm and the various parts of the heap and diagnose where the problem is. Ta Matt -Original Message- From: Guillaume Lahitette [mailto:[EMAIL PROTECTED] Sent: 04 March 2005 17:58 To: Tomcat Users List Subject: RE: OutOfMemory / JMeter / Profiler questions Matt, Thanks for your feedbackwhich triggered more questions below! -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: 04 March 2005 15:26 To: Tomcat Users List Subject: RE: OutOfMemory / JMeter / Profiler questions Hi, Tomcat always serializes sessions on shutdown and reloads them on startup. Can anyone explain what is the usage for this? You can not re-use a session after a restart, can you??? I would think new session ID is created. This is the default behaviour but can be changed. Does anyone know how? If I can't see any usage for this, I'm very keen on disabling it. You are right in thinking that sessions are serialized per context though. Are you using the standard manager or the persistent manager as they are stored differently with the persistent manager. First time I hear about these! I could see a commented PersistentManager in server.xml so I guess I am using the standard manager. Can you tell me more about these? Why/When would I use the PersistentManager? Although you don't store anything in a session, do you perhaps instanciate it? The number of sessions you currently have can be viewed from the manager application. Yes, I've been using it a lot for context stop / start / reload and monitoring the sessions... Cheers, G Ta Matt -Original Message- From: Guillaume Lahitette [mailto:[EMAIL PROTECTED] Sent: 04 March 2005 15:15 To: Tomcat Users List Subject: RE: OutOfMemory / JMeter / Profiler questions Alan, Thanks for your feedback. You got me curious here: Why does/would Tomcat reload sessions after startup? Aren't the sessions destroyed upon Tomcat shutdown? Also, I could only find a $TOMCAT_HOME/work/Standalone/localhost/prti-rpt-engine.2.4.2.b17/S ESSIONS.se r, which is NOT the context I have been load testing. Sessions should be serialized per context, shouldn't they? We do not store anything in the session (our test just calls a servlet which generate a PDF report) so I can't see why the sessions would be using so much memory. But I'll definitely keep your idea in mind for other tests. I should hopefully be able to run the same tests on our staging platform and see if we get similar behaviors. Thanks for your inputs. Please keep them coming! Cheers, Guillaume -Original Message- From: Flisch, Alan [mailto:[EMAIL PROTECTED] Sent: 03 March 2005 12:17 To: Tomcat Users List Subject: RE: OutOfMemory / JMeter / Profiler questions You probably have either very large or very many sessions which Tomcat is attempting to reload on startup. Tomcat serialises sessions into files called SESSIONS.ser (in the application directories under the work dir) and then when it is restarted it attempts to reload them all. I presume this behaviour can be turned off. In terms of testing your app, you want to figure out whether you have a memory leak issue with your app, or simply that your max heap size is set too low for the load you are running. To check for memory leaks, you could run jmeter reasonably (although not too hard) excercising as much of your app as you can, repetitively and for an extended period. If it eventually keels over then you may need to investigate memory leaks with a profiler. Another possibility is that you may not be invalidating sessions and they are just being left to expire naturally. This can use up a lot of memory if you aren't careful and I supect is a quite likely source of your problems. Cheers! -Original Message- From: Guillaume Lahitette [mailto:[EMAIL PROTECTED] Sent: 03 March 2005 09:51 To: tomcat-user@jakarta.apache.org Subject: OutOfMemory / JMeter / Profiler questions Hello Tomcat'oids! We've started performance testing one of our REMOTE web apps using JMeter. We're gathering benchmark data before doing further fine tuning. Details: Win2K only have ssh + cygwin access to this remote server JDK 1.4.1_03 Tomcat 4.1.26, running as a service
RE: Tomcat multiple instancies
You just have to change the ports that are used in the server.xml. Ta Matt -Original Message- From: Andrea Anastasescu [mailto:[EMAIL PROTECTED] Sent: 01 March 2005 09:35 To: Tomcat Users List Subject: Tomcat multiple instancies Hello everybody, I need to run 2 different instacies of Tomcat 4.1. The instacies are different in both used common and shared jars and the webapplications. Is this managable? How? Thank you in advance, Andrea Anastasescu ___ Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de - 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 clustering and NotSerializableException
I would guess that this means you have an object in your session that does not implement the serializable interface. Ta Matt -Original Message- From: Sng Wee Jim [mailto:[EMAIL PROTECTED] Sent: 28 February 2005 09:21 To: tomcat-user@jakarta.apache.org Subject: Tomcat clustering and NotSerializableException Hi, I am using Tomcat 5.0.28 on MS Win2k server. After I have uncommented the Cluster element in server.xml, I get the following exceptions on the tomcat console for some actions that are using displaytag. Is it a tomcat bug, since org.apache.coyote.tomcat5.CoyoteRequestFacade is involved? (DeltaManager.java:813)- Unable to serialize delta request java.io.NotSerializableException: org.apache.coyote.tomcat5.CoyoteRequestFacade at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java :1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:13 04) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.jav a:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at org.apache.catalina.cluster.session.DeltaRequest$AttributeInfo.writeE xternal(DeltaRequest.java:300) at org.apache.catalina.cluster.session.DeltaRequest.writeExternal(DeltaR equest.java:217) at org.apache.catalina.cluster.session.DeltaManager.unloadDeltaRequest(D eltaManager.java:393) at org.apache.catalina.cluster.session.DeltaManager.requestCompleted(Del taManager.java:782) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationVa lve.java:203) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16 0) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja va:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:683) at java.lang.Thread.run(Thread.java:534) - Jim The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, please notify the sender of this email immediately. You should not copy, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Capco. http://www.capco.com/ Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe,
RE: Tomcat clustering and NotSerializableException
These objects will replicate to other instances when ALL objects in the session are serializable. I suspect that nothing will be replicated if there is non serializable objects in there. Ta Matt -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: 28 February 2005 15:14 To: Tomcat Users List Subject: RE: Tomcat clustering and NotSerializableException But do those session objects replicate to the other tomcat instances??? I have been testing session objects that implement java.io.serializable and I have not yet been able to see these objects when fail over occurs to another instance?? Thanks, Randall -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 8:13 AM To: Tomcat Users List Subject: RE: Tomcat clustering and NotSerializableException As Matt said its probably your applications objects. When we switched to clustering I was surprised at how many of my session objects I needed to add serializable to. But it was easy work and quickl done. HTH - Richard Dale, Matt wrote: I would guess that this means you have an object in your session that does not implement the serializable interface. Ta Matt -Original Message- From: Sng Wee Jim [mailto:[EMAIL PROTECTED] Sent: 28 February 2005 09:21 To: tomcat-user@jakarta.apache.org Subject: Tomcat clustering and NotSerializableException Hi, I am using Tomcat 5.0.28 on MS Win2k server. After I have uncommented the Cluster element in server.xml, I get the following exceptions on the tomcat console for some actions that are using displaytag. Is it a tomcat bug, since org.apache.coyote.tomcat5.CoyoteRequestFacade is involved? (DeltaManager.java:813)- Unable to serialize delta request java.io.NotSerializableException: org.apache.coyote.tomcat5.CoyoteRequestFacade at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java 1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:13 04) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.jav a:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at org.apache.catalina.cluster.session.DeltaRequest$AttributeInfo.writeE xternal(DeltaRequest.java:300) at org.apache.catalina.cluster.session.DeltaRequest.writeExternal(DeltaR equest.java:217) at org.apache.catalina.cluster.session.DeltaManager.unloadDeltaRequest(D eltaManager.java:393) at org.apache.catalina.cluster.session.DeltaManager.requestCompleted(Del taManager.java:782) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationVa lve.java:203) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16 0) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja va:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:683) at java.lang.Thread.run(Thread.java:534) - Jim The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, please notify the sender of this email immediately. You should not copy, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Capco. http://www.capco.com
RE: Getting other Sessions
Hi, That doesn't answer Joseph's question. It tells him how to access the objects in his own session but not how to access other peoples sessions. I would be interested to see how this is done as well. Ta Matt -Original Message- From: Bernhard Slominski [mailto:[EMAIL PROTECTED] Sent: 23 February 2005 09:17 To: 'Tomcat Users List' Subject: AW: Getting other Sessions Hi, HttpSession.getAttributeNames() should do what you want! From the javadoc: getAttributeNames public java.util.Enumeration getAttributeNames() Returns an Enumeration of String objects containing the names of all the objects bound to this session. Cheers Bernhard -Ursprüngliche Nachricht- Von: Joseph Shraibman [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 23. Februar 2005 05:18 An: tomcat-user@jakarta.apache.org Betreff: Getting other Sessions I want to make an admin page in my application. I needs to be able to get access to all the current Session objects to access their attributes. Is this possible? - 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: moving all classes to shared
I'm not sure what you're getting at here. The number of users are irrelevant to the classes. You should only use shared/classes if the classes have to be shared across web apps. Although this is not usually advised as it is good practice to keep web apps self contained. WEB-INF/classes would take precedence over shared/classes but I still don't see what you are trying to achieve. My understanding (I'm sure someone will correct me if i'm wrong) of the shared is that each class will be loaded into the classloader of each webapp so no memory would be saved, if you chose to use this area for sharing classes accross webapps. If you wanted to save memory then the common/classes is where you should put your classes. This will only classload 1 copy of the class. Ta Matt -Original Message- From: Oleg [mailto:[EMAIL PROTECTED] Sent: Sunday, February 20, 2005 2:38 AM To: Tomcat Users List Subject: moving all classes to shared If I have 200 users deployed on tomcat with 99% using identical classes, would it be ok to move all classes to shared/classes directory? Will that give better memory usage? Also, can I later add the classes that are different directly to WEB-INF/classes and will they be given priority? Thank you Oleg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: manager application
To use the manager app you have to add a user into the tomcat-users.xml with the manager role. Ta Matt -Original Message- From: P.M [mailto:[EMAIL PROTECTED] Sent: 13 February 2005 14:43 To: Jarkarta - TOMCAT Apache Subject: manager application Hi, I open the localhost:8080 without any trouble now, but i hace an error message 403 everyting that i try to access to manager or admin applications. i tested all username and password which are in tomcat-users.xml, but nothing work.. i know from windows install exe file, that another profile existed : admin with empty password...but even if this one doesn't work. does anyone have seen it already ? thx, Maileen __ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session Objects
Yes it will, this won't work accross a cluster. You need to use the regular session manager. Is there any reason why you put the sessions in a singleton? Ta Matt -Original Message- From: Jagadeesha T [mailto:[EMAIL PROTECTED] Sent: 08 February 2005 17:25 To: tomcat-user@jakarta.apache.org Subject: Session Objects Hi all, I' am storing session objects in a SINGLEON class object to keep all active sessions. Does it give any problems in clustered enviornment since singleton is a static referrence. Regards, Jagga __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session Objects
It's not impossible to make this work over a cluster but not with the included clustering classes in tomcat. You would have to write your own clustering classes. The reason why it won't work is that each singleton will be individual to a classloader and each tomcat accross the cluster will obviously have its own classloaders. The standard clustering only shares the sessions that are stored within the standard session manager in tomcat. -Original Message- From: Shey Rab Pawo [mailto:[EMAIL PROTECTED] Sent: 08 February 2005 17:44 To: Tomcat Users List Subject: Re: Session Objects Could you explain why this won't work across a cluster? Thanks. On Tue, 8 Feb 2005 17:28:59 -, Dale, Matt [EMAIL PROTECTED] wrote: Yes it will, this won't work accross a cluster. Hi all, I' am storing session objects in a SINGLEON class object to keep all active sessions. Does it give any problems in clustered enviornment since singleton is a static referrence. Regards, Jagga -- The radiance of all the stars does not equal a sixteenth part of the moon's radiance, likewise, good deeds giving us merit, all these do not equal a sixteenth part of the merit of loving-kindness.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: outOfMemory exception under high load
It could be your permanent generation that is running out of space. Get a hold of jvmstat to determine if this is the case. Ta Matt -Original Message- From: Michael Cornell [mailto:[EMAIL PROTECTED] Sent: 07 February 2005 11:31 To: Tomcat Users List Subject: Re: outOfMemory exception under high load Sorry, that was a copy and paste typo :( Its set at 2G (4G for the whole machine) /m reynir wrote: well, your -Xmx1G set's the limit for memory usage at 1 gig. ? -server -Xms1G -Xmx1G -Xmn384m -XX:SurvivorRatio=7 -XX:PermSize=64m -XX:MaxPermSize=128m -Xint you might want to set that a little higher. Michael Cornell wrote: Not exactly sure but by running vmstat, it look like I am nearing the 2G limit .. maybe about 1.8G consumed.. /m reynir wrote: how much memory is your process using when it crashes ? -r Michael Cornell wrote: Hi, Hi, I am experiencing a problem many others seem to have had before, but have found no answers. I am running Tomcat 5.0.25 using jdk 1.4.2_06 hotspot vm on RedHat Linux ES with 4G Ram and twin Intel procs. When load-testing, under high stress I receive the error below and the thread dies. 04-Feb-2005 13:39:24 org.apache.coyote.tomcat5.CoyoteAdapter service SEVERE: An exception or error occurred in the container during the request processing java.lang.OutOfMemoryError at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.init(ZipFile.java:112) at java.util.jar.JarFile.init(JarFile.java:127) .. I have adjusted the vm parameters to the below ( the perm space does not get full and the Xint to not use the optimised settings.. -server -Xms1G -Xmx1G -Xmn384m -XX:SurvivorRatio=7 -XX:PermSize=64m -XX:MaxPermSize=128m -Xint In addition I have added the reloading=false and development=false in conf/web.xml. as per instruction from this thread: http://www.junlu.com/msg/78566.html My connector is configured thus: Connector port=80 maxThreads=1000 minSpareThreads=1000 maxSpareThreads=1000 enableLookups=false redirectPort=8443 acceptCount=3000 debug=0 connectionTimeout=2 disableUploadTimeout=true / However all of this is to no avail, and under high stress (80+ concurrent requests, tomcat dies and terminates the thread dumping a hs_pid12345.log with the above message Is this a known hotspot 1.4.x problem (some threads have hinted at this), or does someone have a solution for this?? Thanks, M - 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] - 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: outOfMemory exception under high load
In that case then it sounds like either a memory leak or you just don't have enough memory to support your application. Do you have large objects in your sessions? I'd get a profilier and find out what objects are in your heap when you get the exceptions and it should lead you to the root cause of your problem. Ta Matt -Original Message- From: Michael Cornell [mailto:[EMAIL PROTECTED] Sent: 07 February 2005 12:01 To: Tomcat Users List Subject: Re: outOfMemory exception under high load Hi, RE Matt: // I am already running visualgc (jvmstat) on it... the behavior is just that the heap fills up (no gc) and then at about 80% full it just bombs out. Perm Gen is only 20% full and none of the others are used.. RE reynir: Why are you setting these paremeters : -Xmn384m -XX:SurvivorRatio=7 -XX:PermSize=64m -XX:MaxPermSize=128m -Xint I usually only set the -Xmx and -server // The Permsize params have been put in in case that was the problem (running out of perm space) and the -Xint as this makes it run without any optimisations (I believe) ie all interpreted. Xmn is the New Generation= (eden) + (from + to) and survivor ratio is just that.. the ratio of eden - survivors I can see no reason why these should mess anything up sufficiently to produce this error. Dale, Matt wrote: It could be your permanent generation that is running out of space. Get a hold of jvmstat to determine if this is the case. Ta Matt -Original Message- From: Michael Cornell [mailto:[EMAIL PROTECTED] Sent: 07 February 2005 11:31 To: Tomcat Users List Subject: Re: outOfMemory exception under high load Sorry, that was a copy and paste typo :( Its set at 2G (4G for the whole machine) /m reynir wrote: well, your -Xmx1G set's the limit for memory usage at 1 gig. ? -server -Xms1G -Xmx1G -Xmn384m -XX:SurvivorRatio=7 -XX:PermSize=64m -XX:MaxPermSize=128m -Xint you might want to set that a little higher. Michael Cornell wrote: Not exactly sure but by running vmstat, it look like I am nearing the 2G limit .. maybe about 1.8G consumed.. /m reynir wrote: how much memory is your process using when it crashes ? -r Michael Cornell wrote: Hi, Hi, I am experiencing a problem many others seem to have had before, but have found no answers. I am running Tomcat 5.0.25 using jdk 1.4.2_06 hotspot vm on RedHat Linux ES with 4G Ram and twin Intel procs. When load-testing, under high stress I receive the error below and the thread dies. 04-Feb-2005 13:39:24 org.apache.coyote.tomcat5.CoyoteAdapter service SEVERE: An exception or error occurred in the container during the request processing java.lang.OutOfMemoryError at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.init(ZipFile.java:112) at java.util.jar.JarFile.init(JarFile.java:127) .. I have adjusted the vm parameters to the below ( the perm space does not get full and the Xint to not use the optimised settings.. -server -Xms1G -Xmx1G -Xmn384m -XX:SurvivorRatio=7 -XX:PermSize=64m -XX:MaxPermSize=128m -Xint In addition I have added the reloading=false and development=false in conf/web.xml. as per instruction from this thread: http://www.junlu.com/msg/78566.html My connector is configured thus: Connector port=80 maxThreads=1000 minSpareThreads=1000 maxSpareThreads=1000 enableLookups=false redirectPort=8443 acceptCount=3000 debug=0 connectionTimeout=2 disableUploadTimeout=true / However all of this is to no avail, and under high stress (80+ concurrent requests, tomcat dies and terminates the thread dumping a hs_pid12345.log with the above message Is this a known hotspot 1.4.x problem (some threads have hinted at this), or does someone have a solution for this?? Thanks, M - 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] - 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted
RE: Version control tool
Eclipse -Original Message- From: John Najarian [mailto:[EMAIL PROTECTED] Sent: 07 February 2005 15:25 To: Tomcat Users List Subject: OT: Version control tool Does anyone know a good version control tool for code management that is free? Also, a bug tracking application would be nice also. These need to be run on Windows. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Version control tool
www.eclipse.org You still need a CVS server but it is very good for managing source code as it is a nicely featured CVS client. -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: 07 February 2005 15:38 To: Tomcat Users List Subject: Re: Version control tool Eclipse?! For version control, go with CVS or subversion. Most apache projects these days are going to subversion. It integrates very nicely with Windows. For bug tracking, I have yet to find a free bug tracking too that does not suck. If there is anyway, drop the $1200 and get JIRA. IMO, it is FAR better than bugzilla...yes, even $1200 better. Larry On Mon, 7 Feb 2005 15:27:48 -, Dale, Matt [EMAIL PROTECTED] wrote: Eclipse -Original Message- From: John Najarian [mailto:[EMAIL PROTECTED] Sent: 07 February 2005 15:25 To: Tomcat Users List Subject: OT: Version control tool Does anyone know a good version control tool for code management that is free? Also, a bug tracking application would be nice also. These need to be run on Windows. Thanks - 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.4 oveload CPU
Do you have enough physical memory to support the size that your JVM's grow to? Ta Matt -Original Message- From: Yuval Zantkeren [mailto:[EMAIL PROTECTED] Sent: 28 January 2005 09:25 To: tomcat-user@jakarta.apache.org Subject: Tomcat 5.5.4 oveload CPU Hi, I run 3 Instance of Tomcat 5.5.4 on one server with Windows 2003 and every few days the servers stack on 30% CPU usage each and they take 100% of the CPU of the server, I must restart the services in order to free the CPU. Does anyone have any idea why it is happening? Yuval Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Still having OutOfMemory Problems (Tomcat 4.1.31)
If it is taking these settings then either those are not enough or you are running out space in the permanent generation. Use -XX:MaxPermSize=128m to boost the max size of it. -Original Message- From: David Johnson [mailto:[EMAIL PROTECTED] Sent: 17 January 2005 17:52 To: Tomcat Users List Subject: Still having OutOfMemory Problems (Tomcat 4.1.31) HI all. Well I'm still getting my out of memory problem fairly consistently (again) using Tomcat 4.1.31 with my Struts application. When I look st the memory usage, it says tomcat is using about 110k of memory for the VM, but that's just looking at the task manager. Tomcat is installed as a service using a bat file (follows). Note the -Xms128M and -Xmx512M options are set...if doesnt seem to matter what I set these options toeven if I set them to 32m/64m! How can I tell if tomcat is REALLY using those settings? It doesnt seem to be Thanks - install.bat: @SET JAVA_HOME=C:\j2sdk_1_4_0_2 @SET TOMCAT_HOME=C:\Tomcat4.1 @SET TOMCAT_JVM=%JAVA_HOME%\jre\bin\client\jvm.dll @SET TOMCAT_CLASSPATH=%TOMCAT_HOME%\bin\bootstrap.jar;%TOMCAT_HOME%\common\lib\servlet.jar @SET TOMCAT_ENDORSED=%TOMCAT_HOME%\common\endorsed @SET TOMCAT_LOG=%TOMCAT_HOME%\logs\stdout.log @SET TOMCAT_ERR_LOG=%TOMCAT_HOME%\logs\stderr.log %TOMCAT_HOME%\bin\tomcat.exe -install Apache Tomcat 4.1.31 %TOMCAT_JVM% -Djava.class.path=%TOMCAT_CLASSPATH% -DXms128M -DXmx512M -DXX:+PrintTenuringDistribution -DXX:+PrintGCDetails -Xverbosegc -Djava.endorsed.dirs=%TOMCAT_ENDORSED% -Dcatalina.home=%TOMCAT_HOME% -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out %TOMCAT_LOG% -err %TOMCAT_ERR_LOG% - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Alpha, Beeta releases--query
This is not just common to open source development but development in general and I suspect there is no reason than common practice. By the time a product gets out of beta it is generally stable enough for mainstream realease. The reason why this is more prominent in open source development is because there is more visibility of the development process whereas with commercial products it is all done behind closed doors. Ta Matt -Original Message- From: Rajaneesh [mailto:[EMAIL PROTECTED] Sent: 18 January 2005 05:15 To: 'Tomcat Users List' Subject: Alpha, Beeta releases--query Hi, Had a basic question. In the opensource packages why do you have the releases named as alpha and beeta? Why not have gamma releases, theeta releases? Regards Rajaneesh --Curiosity kills-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Why am I getting this authentication window
you need to add a user with the manager role to the tomcat-users.xml file. Then use this login and you will be able to access the admin app. -Original Message-From: Venkat Radha Venkataramanan [mailto:[EMAIL PROTECTED]Sent: 14 January 2005 16:43To: 'Tomcat Users List'Subject: Why am I getting this authentication window Hello: I am running Tomcat 5.0. I installed it about 2 months back and I have been learning the ropes these days. This morning when I tried to go into the Manager application and/or the admin application (http://127.0.0.1:8080/admin/), I get an authentication box: I dont know why all of a sudden I get this dialog box and even if I supply a local user/password, I cannot seem to go past this. Any help you can provide is much appreciated. Venkat Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Shutdown port
I don't think you can as tomcat uses this itself for shutting down nicely. You could use a firewall to block the port from external access and changing the SHUTDOWN command to something else will stop people guessing at it. You can also change the port to a non default one. Ta Matt -Original Message- From: Frank Parato [mailto:[EMAIL PROTECTED] Sent: 12 January 2005 12:55 To: Tomcat Users List Subject: Shutdown port Is there a way to remove the shutdown port on a server ? I tried pulling the port=8005 option out, but it still listens on that port and I'm able to shut it down. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.OutOfMemoryError Tomcat4.1.30
Increase the size of the heap. The default is only 64M. Ta Matt -Original Message- From: kjiang [mailto:[EMAIL PROTECTED] Sent: 06 January 2005 21:19 To: tomcat-user@jakarta.apache.org Subject: java.lang.OutOfMemoryError Tomcat4.1.30 Hi When tomcat (version 4.1.30) read in a large file, java.lang.OutOfMemoryError occurred, what can I do for this issue. Thanks Kelvin jiang Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Out of Memory when compiling JSP (Struts app on Tomcat 4.1.27)
It could also be that the Permanent Generation has filled up, look up the docs on how to increase that or start with -XX:MaxPermSize=128M -Original Message- From: SANTOS, DANIEL (SBCSI) [mailto:[EMAIL PROTECTED] Sent: 06 January 2005 14:57 To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Out of Memory when compiling JSP (Struts app on Tomcat 4.1.27) Chachany, It sounds like it's using the default of -Xmx64m. Probably the best way to troubleshoot out or memory errors is to see what is really happening with garbage collecting, the same way that you tune it. If you can add these options, then the JVM will spit out all kinds of useful information: -XX:+PrintTenuringDistribution -XX:+PrintGCDetails -Xverbosegc But it sounds like the problem is that it's not getting the options. What you really need to figure out is exactly how the service is getting started. For instance, if it's calling tomcat.exe then I don't believe that the JAVA_OPTS environment variable is ever looked at since that is in the startup.sh and startup.bat files (I'm not 100% certain about that however). Find out how it's starting. Also, post the version of Java you are using (since the options I gave you above don't work on all versions, I think 1.4 and up or 1.3 and up). But the -Xverbosegc works all the way back to 1.1 if I'm correct. Daniel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, January 06, 2005 8:25 AM To: tomcat-user@jakarta.apache.org Subject: Out of Memory when compiling JSP (Struts app on Tomcat 4.1.27) Hi all I'm working on an application currently that is experiencing some intermittent memory problems when installed onto our integration test server, but not on the development staff's local laptops. I have attempted to increase the maximum memory available to Tomcat by creating a global environment variable (because tomcat runs as a service) JAVA_OPTS=-Xmx512M Which doesnt seem to have made a difference. Is this the best way to increaqte the memory available to an application? Is my syntax wrong? Are there other options I can set that will help? The weird thing is that when I look at the memory usage of Tomcat.exe, the most memory it has used is 110,000 there seems to be no pattern to the memory errors (as usual) and it happens a lot when compiling JSP files. The system memory seems high, but not horribly so. I see the following in Task Manager MEM Usage = 885,000 (varies) Commit Charge: Limit : 2,522,244 Peak : 958,260 Anyone? Thanks! - 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: dynamically compile JSPs
This might be a long way round but you could call a system ant job to compile them. Or if it is appropriate in your environment you should just precompile them anyway, this way there will be no performance hit at all on your production server when a new deployment is made. Ta Matt -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: 22 December 2004 17:01 To: Tomcat Users List Subject: Re: dynamically compile JSPs I can't seem to find any solid documentation on this (I downloaded the JSP 2.0 spec and don't see it mentioned, even though based on a google search it seems like it is is a JSP thing and not a tomcat thing) But anyways - it doesn't seem to work for me, and I think the reason is that the jsp I want to compile dynamically is a struts/tiles layout page. There is no way to access the file directly through the browser. I may be able to get away with putting jsp_compile=true in the tile definition path, but I'd like to avoid that because (if my understanding of this parameter is true) the page will get recompiled on every page load, which is really not what I want, and would probably hurt performance a lot. Any other ideas for dynamic JSP compilation? Calling the compiler from inside the code (a struts action) if possible is not out of the question as long as there is no serious downside. Thanks, Matt Tim Funk wrote: I would think that making the query string be jsp_compile=true would do it. For example: mypage.jsp?jsp_compile=true [I never tried it] -Tim Matt Bathje wrote: Hi all - If you have your tomcat servers setup with development=false (compiling every 5 minutes) - is there a way to dynamically compile certain JSP pages from inside your servlet code? (Or at least to trigger a compile to happen off of the schedule?) If so - are there any side effects of doing this? - 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: dynamically compile JSPs
I'd go with my first suggestion then although I'm sure there's a better way. -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: 22 December 2004 17:12 To: Tomcat Users List Subject: Re: dynamically compile JSPs Well they are being precompiled at first. The problem is that some of the pages are being uploaded/overwritten through a web interface, and the changes aren't immediately visible to users. (They have to wait for the scheduled recompile to happen to see the changes they made.) Matt Dale, Matt wrote: This might be a long way round but you could call a system ant job to compile them. Or if it is appropriate in your environment you should just precompile them anyway, this way there will be no performance hit at all on your production server when a new deployment is made. Ta Matt -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: 22 December 2004 17:01 To: Tomcat Users List Subject: Re: dynamically compile JSPs I can't seem to find any solid documentation on this (I downloaded the JSP 2.0 spec and don't see it mentioned, even though based on a google search it seems like it is is a JSP thing and not a tomcat thing) But anyways - it doesn't seem to work for me, and I think the reason is that the jsp I want to compile dynamically is a struts/tiles layout page. There is no way to access the file directly through the browser. I may be able to get away with putting jsp_compile=true in the tile definition path, but I'd like to avoid that because (if my understanding of this parameter is true) the page will get recompiled on every page load, which is really not what I want, and would probably hurt performance a lot. Any other ideas for dynamic JSP compilation? Calling the compiler from inside the code (a struts action) if possible is not out of the question as long as there is no serious downside. Thanks, Matt Tim Funk wrote: I would think that making the query string be jsp_compile=true would do it. For example: mypage.jsp?jsp_compile=true [I never tried it] -Tim Matt Bathje wrote: Hi all - If you have your tomcat servers setup with development=false (compiling every 5 minutes) - is there a way to dynamically compile certain JSP pages from inside your servlet code? (Or at least to trigger a compile to happen off of the schedule?) If so - are there any side effects of doing this? - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Why is tomcat (java) so memory intensive?
and get jvmstat from sun, it will allow you to see which area in the heap runs out of space. Ta Matt -Original Message- From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] Sent: 21 December 2004 15:12 To: Tomcat Users List Subject: RE: Why is tomcat (java) so memory intensive? you will need to dig deeper into jprobe or whatever profiler you are using. after that you will see where the memory goes. also, try the latest version of tomcat 5.0 Filip -Original Message- From: Philippe Deslauriers [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 21, 2004 8:53 AM To: [EMAIL PROTECTED] Subject: Why is tomcat (java) so memory intensive? I am using Tomcat 5.0.19 on Windows XP SP2, J2SDK 1.4.2_03. I have a serious memory problem with Tomcat, it just EAT memory without explanation, until OOM error occurs. The Java.exe process in the windows task manager reports using between 95Mb and 105Mb after the startup of the webapp. I do not use Xms Xmx options in dev mode. It just grows until it runs out of memory. There is not much memory available (around 150Mb), yet it should be enough for a few classes, JSP and almost not data in the database. Like a big boy, I decided to use Jprofiler demo to figure out where the memory leak was, to see that there is only 20 Mb allocated by the VM!!! So where does the rest of the memory goes? I do not use any non-java library (dll), I don't think I'm doing anything special. The app use a the Versant JDO implementation (instead of direct JDBC) using MS SQL server. But hey, the app is still in dev mode, with only the developpers using it, the DB is (almost) empty, so the amount data is not in cause. Anyways using 20Mb of heap is very reasonable (there will be at least 1gb available in production), but why is the java.exe process eating memory like a pig an the profiler is not showing where the mem goes? (by the way, I did deleted ALL the filters from Jprofiler). If the app would take 2Gb in memory I would not care, as long as I know what is using the memory. I did profile an app running on 5.0.18, and the same magic happens, the memory used by the java.exe is far from close to what the total heap size of the VM reports to be. Am I going crazy? Any ideas? Thanks Filip:) - 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Why is tomcat (java) so memory intensive?
Sounds like you are running out of space in the permanent generation. Add -XX:MaxPermSize=128M to your JAVA_OPTS -Original Message- From: Philippe Deslauriers [mailto:[EMAIL PROTECTED] Sent: 21 December 2004 15:47 To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Why is tomcat (java) so memory intensive? Actually no, I tough it was 256Mb. Thanks. It will go out of memory around 125Mb 140Mb in the task manager. It depends. But your point just prove my problem to be even stanger: if 64 Mb shoulb be the limit where did the other 60Mb+ go? (the JVM itself never takes that much memory, not from my experience). What I did not mention in the orgininal post is that I have the same problem with an app running on 5.0.18 sam jdk, using -Xms256m -Xmx1024m, it will also run OOM, and again profiling the app did not show any leak, and a large gap between the total heap and whatever the task manger reports. My main issue here is where does the gap come from? -Original Message- From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 21, 2004 10:22 AM To: Tomcat Users List Subject: Re: Why is tomcat (java) so memory intensive? Philippe Deslauriers wrote: I am using Tomcat 5.0.19 on Windows XP SP2, J2SDK 1.4.2_03. I have a serious memory problem with Tomcat, it just EAT memory without explanation, until OOM error occurs. The Java.exe process in the windows task manager reports using between 95Mb and 105Mb after the startup of the webapp. I do not use Xms Xmx options in dev mode. You do know that the VM will only allocate 64 mb for heap if you don't use the Xmx option, do you? After the 64 mb are used up the vm will throw an oom error. How much memory does the taskmanager report before the oom error happens? Christoph - 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Why is tomcat (java) so memory intensive?
I think that's only with JDK 1.3 though -Original Message- From: Dakota Jack [mailto:[EMAIL PROTECTED] Sent: 21 December 2004 16:40 To: Tomcat Users List Subject: Re: Why is tomcat (java) so memory intensive? Why, then, does the Tomcat 5.0 say in the RELEASE-NOTES JAVAC leaking memory is an issue? On Tue, 21 Dec 2004 16:06:13 -, Allistair Crossley [EMAIL PROTECTED] wrote: i think (from memory) it had to do with registering requests with jk. anyway, like i say, upgrade and you'll see that leak go away i am pretty sure. -Original Message- From: Allistair Crossley Sent: 21 December 2004 16:00 To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Why is tomcat (java) so memory intensive? you are right, tomcat 5.0.19 did have a memory leak. some dispute it, but it is there, i had it also and used a profiler to show it. you should upgrade to 5.0.28. Thanks, Jack -- You can lead a horse to water but you cannot make it float on its back. ~Dakota Jack~ You can't wake a person who is pretending to be asleep. ~Native Proverb~ Each man is good in His sight. It is not necessary for eagles to be crows. ~Hunkesni (Sitting Bull), Hunkpapa Sioux~ --- This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk2 future?
The recommended ways to go are JK or mod_proxy_ajp. Ta Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 20 December 2004 11:17 To: [EMAIL PROTECTED] Subject: mod_jk2 future? Hi all, I've a jsp-based application (interface to an oracle db) that will go in production in January. The server is actually configured this way: SuSe 9.0, Apache 2.0.48 (with a virtual host redirecting everything to Tomcat), Tomcat-5.0.28, configured with mod_jk2 because I read that md_jk2 was the connector to use with apache 2.x.x I read (by chance?) somewhere on the jakarta web site that mod_jk2 (aka JK2) is officially unsupported since mid-November. At this point I'm not sure what to do: should I use JK? Should I stay with mod_jk2 and wait for its successor which should be (??) within the core Apache distribution? Any advice would be greatly appreciated Regards, Gaël - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Myth or Best practice : %@ page session=false %
Hi, If the session has not already been created then this will ensure that this jsp does not create it. If one exists already it won't destroy it but the JSP won't have access to it. I reckon it's good practice to use this, if you don't need a session, don't create it. Ta Matt -Original Message- From: Razi Ansari [mailto:[EMAIL PROTECTED] Sent: 15 December 2004 14:18 To: [EMAIL PROTECTED] Subject: Myth or Best practice : %@ page session=false % %@ page session=false % Hello people I wanted to enquire from the experts about something that I had read. Is it true that inculuding the above directive in a jsp will prevent the session object from being created for that jsp, hence avoiding the creation of unnecessary objects?? Or Is it just that the session object will not be available for that jsp ?? what is the opinion of gurus out here, Can the inclusion of the above directive be considered as a best practice to be followed. Pls enlighten me . All replies will be valued and appreciated. Thnx for clicking and reading through. Warm Regards Razi _ Take a break! Find destinations on MSN Travel. http://www.msn.com.sg/travel/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: log4j and tomcat 5.5
Hi, Shameless plug accepted, is there somewhere I can download it or do I need to get it from CVS? Ta Matt -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 13 December 2004 14:02 To: Tomcat Users List Subject: RE: log4j and tomcat 5.5 Hi, -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Sunday, December 12, 2004 5:22 PM To: Tomcat Users List Subject: RE: log4j and tomcat 5.5 Hopefully I explained things better and piqued your curiosity about repostiory selectors in Log4j-1.3 :-) You certainly have mine ;) shamelessPlug Log4j 1.3 is in an alpha state right now, and its only testers appear to be its committers. It'd be useful to have someone who knows what he's doing, but is not a log4j committer, like you, test it as well. ;) /shamelessPlug Yoav Shapira http://www.yoavshapira.com 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: log4j and tomcat 5.5
ignore that, found the binary download. Ta Matt -Original Message- From: Dale, Matt Sent: 13 December 2004 14:37 To: Tomcat Users List Subject: RE: log4j and tomcat 5.5 Hi, Shameless plug accepted, is there somewhere I can download it or do I need to get it from CVS? Ta Matt -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 13 December 2004 14:02 To: Tomcat Users List Subject: RE: log4j and tomcat 5.5 Hi, -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Sunday, December 12, 2004 5:22 PM To: Tomcat Users List Subject: RE: log4j and tomcat 5.5 Hopefully I explained things better and piqued your curiosity about repostiory selectors in Log4j-1.3 :-) You certainly have mine ;) shamelessPlug Log4j 1.3 is in an alpha state right now, and its only testers appear to be its committers. It'd be useful to have someone who knows what he's doing, but is not a log4j committer, like you, test it as well. ;) /shamelessPlug Yoav Shapira http://www.yoavshapira.com 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 5.0 vs 5.5
Might as well go to 5.5.4 as it is stable and the way forwards. Management of the 2 is very similar. Ta Matt -Original Message- From: Dola Woolfe [mailto:[EMAIL PROTECTED] Sent: 13 December 2004 15:20 To: Tom Cat Subject: 5.0 vs 5.5 So I decided to upgrade my Tomcat (and go with the standalone). Should I go with 5.0 or 5.5? I heard that 5.5 is not quite stable but I'm worried that I will spend time learning how to manage 5.0 and then in a couple months I will have to relearn 5.5; Are there many differences in management? As a little more infor, web application runs on the intranet and has an audience of about 15 people. There's virtually no volume and I'm sure that my servlets and jsp pages are quite naive and don't do anything advanced... Thanks __ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OutOfMemory Errors
Perhaps you just arent allocating enough memory for your application and there is no leak. As always i recommend getting a hold of jvmstat from sun and it'll give you some visual clues as to what is going on. -Original Message- From: Asim Alp [mailto:[EMAIL PROTECTED] Sent: 13 December 2004 17:47 To: Tomcat Users List Subject: OutOfMemory Errors I'm trying to solve an OOME on our Tomcat. We profiled our application using JProfiler and there are no memory leakages on our end. Currently, I'm focusing on some system resource problems such as file descriptors. Would this be a valid problem on Windows Server 2003? And if so, how can I change the max number of file descriptors? One last thing... What other resources should I investigate for this sort of OOME? Thanks, Asim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: visualgc and tomcat
The process will be named Bootstrap if that is of any use to you. Normally this is service related as the owner of the service is not the user you are logged in as but that appears not to be so in this case. -Original Message- From: Asim Alp [mailto:[EMAIL PROTECTED] Sent: 14 December 2004 03:50 To: Tomcat Users List Subject: visualgc and tomcat I hava a problem finding out the lvmid of the running Tomcat instance. I have installed jvmstat 3.0 from Sun. It works perfectly fine for all running Java applications but Tomcat. When I type jps and hit enter, I don't see Tomcat's lvmid. I tried using the PID in task manager, but that didn't work either. Any suggestions? BTW, I'm running Tomcat 5.5.4 on Windows Server 2003 with Sun's jdk1.5.0-b64, and I'm NOT running it as a service. I use the startup.bat file. Thanks, Asim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: prevent multiple form posts using only servlets
The way I handle this is to use javascript to disable the submit button after it has been clicked. This used in conjuction with the other suggestions should cover all possibilities -Original Message- From: Elihu Smails [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 7:13 PM To: Tomcat User List Subject: prevent multiple form posts using only servlets Is there a way to prevent multiple form posts from the same page/user/session using only servlets? I have a page where users can upload files, but I do not want them to keep smashing the upload button if their files are large, and the user becomes impatient. thank you. __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: log4j and tomcat 5.5
Hopefully I explained things better and piqued your curiosity about repostiory selectors in Log4j-1.3 :-) You certainly have mine ;) -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Friday, December 10, 2004 12:06 AM To: Tomcat Users List; Marcelo Moreira Subject: Re: log4j and tomcat 5.5 Quoting Marcelo Moreira [EMAIL PROTECTED]: On Thu, 9 Dec 2004 16:33:33 -0600, Jacob Kjome [EMAIL PROTECTED] wrote: Are you trying to enable logging for Tomcat, your webapp, or both? You will need to add both log4j.jar and commons-logging.jar (not commons-logging-api.jar) to common/lib to enable Log4j logging for Tomcat-5.5.x itself. For your own app, do you use actually use the commons-logging api or just the Log4j api? If the latter, don't bother with commons-logging. In fact, try to avoid it like the plague. If you do require commons-logging for your webapp logging, I'm not entirely sure whether it is ok to have log4j.jar in WEB-INF/lib and commons-logging.jar in common/lib or if they have to be together. There could be classloader issues if you separate them. I'm not really sure. commons-logging issus are outside the scope of my knowledge. Thanks for the answer. I am trying for both. commons-logging.jar + log4j.jar are in commons/lib. But here is the question: I do not see why they also have to be on the webapp WEB-INF/lib, since it should be shared because they are already on commons/lib. If you share the common/lib instance of Log4j with your webapp, you will be using the same logger repository as the application server. There is one configuration per logger repository. If force reconfiguration within this already configured logger repository, your old configuration will be blown away. The idea Putting another copy of Log4j.jar in WEB-INF/lib in addition to the one in common/lib is to take advantage of Tomcat's classloading behavior which is child first (recommended by the servlet spec) rather than parent first (normal Java2 classloading behavior). Because each webapp looks locally for libraries first, it will find an instance of Log4j that is not in use by any other application. Therefore, the default logger repository will be distinct from that of the server and from that of any other webapp. You can configure to your hearts content without stompting on others' logging configuration. There is a way to separate application logging while sharing the same instance of Log4j and that is by using a repository selector. I would avoid this until Log4j-1.3 is released. It is more difficult to use a repository selector in Log4j-1.2. 1.3 makes it very simple. I recommend you use the first solution until Log4j-1.3 is released. If I do not put them in the webapp WEB-INF/lib, logging for the webapp does not work. You are counting on autoconfiguration here. If you have an instance in common/lib, but not one in WEB-INF/lib, the logger repository of the one in common/lib will already have been configured by the time your app is initialized. Autoconfiguration is not performed more than once. Your webapp, in this case, will be using the configuration of the config file at the server level (in common/classes). Again, with a repository selector, your app config could be separated from the default logger repository. Note that in Log4j-1.3 you will need to perform configuration as there is no autoconfiguration, at least via classloader discovery of config files, on non-default logger repositories. As I said, I got it working already, but this is just curiosity. Hopefully I explained things better and piqued your curiosity about repostiory selectors in Log4j-1.3 :-) Jake Thanks, Marcelo. - 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of
RE: Tomcat Running out of Memory
I've replied to this further down the thread but as an aside there are ways to bump up the max process size to 3G (with kernel shenanigans) but 32 bit java is fixed at 2G. The figure 1850MB doesnt sounds quite right but it's probably related to the default max process size of 2G and the java process will be bigger than the heap so you won't quite get the full 2G -Original Message- From: Richey, Ross [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 8:45 PM To: Tomcat Users List Subject: Tomcat Running out of Memory My tomcat process runs out of memory (unless rebooted) approximately every three days. Vital Statistics: -Our consultant-designed website consists of approximately 5000 JSP pages. None of these pages pull from a backend, the java was merely used to provide a persistent border. -Max heap size is set to 1850 megs, (which from what I understand is the max on a 32-bit system). -The server has 4 gigs of total RAM. -JDK 1.4 -Tomcat 5.0.18 -Redhat 7.3 I've done some searches on Google and in the archives and I can't seem to find any way to turn up the frequency of the garbage collection. Everything seems to indicate that once a JSP is loaded into memory it stays there. Is there some way to increase the max heap size? Or some way to increase the frequency of garbage collection? Or any other way to slow down the memory usage? Ross Richey Webmaster, www.aruplab.com The information transmitted by this e-mail and any included attachments are from ARUP Laboratories and are intended only for the recipient. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws, or protected health information and is intended only for the use of the recipient. Unauthorized forwarding, printing, copying, distributing, or use of such information is strictly prohibited and may be unlawful. If you are not the intended recipient, please promptly delete this e-mail and notify the sender of the delivery error or you may call ARUP Laboratories Compliance Hot Line in Salt Lake City, Utah USA at (+1 (800) 522-2787 ext. 2100 Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5 Webapp logging.
I think i'm getting it, out of the office till wednesday so i'll give it another whirl then. I think possibly part of the problem is that I was only putting log4j.jar in the WEB-INF/lib and not the commons-logging.jar which is only in common/lib. I'm using solaris so no daft windows service difficulties. Hopefully I can capture the standard out of an app when I get the webapp log4j configuration to work. Thanks for the help and I'm sure you'll read it here if I have any more difficulty. Ta Matt -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 6:16 PM To: Tomcat Users List Subject: RE: Tomcat 5.5 Webapp logging. Quoting Dale, Matt [EMAIL PROTECTED]: This sounds like kind of what I want but you've confused me. I basically want the System.out and stdout from a particular webapp to go to a specific log file that is rotated and seperate for each webapp. I'm not sure how you would separate System.out from any individual app. If you run Tomcat-5.5.x as a service (at least on WinXP, which is what I use currently), it will automatically write to a stdout.log file *and* give you daily log rotation for free. I've now got log4j working with a log4j.properties in common/classes. Everything is now logged to a rotated log file which is hunky dorey from that point of view. My second requirement is that the webapps be seperated into different log files. This, i've had trouble with, i've placed a log4j.properties in WEB-INF/classes but it seems to be ignored (log4j.jar is in the WEB-INF/lib). If you mean System.out output, then there isn't much you can do with the standard console appender. It will all go to one place. However, your normal log4j defined loggers should be working according to your properties file. log4j.properties in WEB-INF/classes with log4j.jar in WEB-INF/lib should create a separate logging environment from the server for each webapp you do this with. I could seperate things out in the the main log4j.properties but at least one of the apps is comprised mostly of jsps without a specific package so i'm unsure how to do this. You can still name your JSP's according to some psuedo-package naming scheme. Loggers aren't tied to your packages. This is just the standard way of naming loggers to make naming predictable and easy to confgure. Name them whatever you want. But where you've really confused me is the mention of log4j.xml, this is the first i've seen on it. Could you perhaps tell me where it goes and point me to something that can help me decide what to put in it? So, you didn't realize that Log4j could be configured using an XML config file? Well, it can. However, the DTD for Log4j prevents using Tomcat's host and context logger names for the reasons I stated (which, again, is not longer an isssue in Log4j-1.3 because the DTD is not used anymore). For instance, the following is illegal because the name attribute is defined by the DTD as of type ID and the [ and ] are illegal characters... logger name=org.apache.catalina.core.ContainerBase.[Catalina].[localhost] /logger If you are unaware of this naming scheme, see the Tomcat-5.5.x docs. The alternative is to use a properties file and use... log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost] In short I could do with a bit more detail if you wouldn't mind. Hopefully that cleared things up a little bit. Jake Ta Matt -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: 09 December 2004 16:55 To: Tomcat Users List Subject: Re: Tomcat 5.5 Webapp logging. So, you want System.out stuff to go to the stdout, is that right? Just set up a console appender. Note that if you want to log to Tomcat's specially named localhost and context loggers, you'll need to use a log4j.properties file rather than log4j.xml because the naming pattern violates the XML spec's naming scheme for attributes of type ID. This is only true for Log4j-1.2.x. In Log4j 1.3, we no longer use a DOMConfigurator, but the new JoranConfigurator which doesn't use a DTD and, therefore, doesn't define logger name attributes as of type ID. You can define loggers and appenders in a way where Tomcat's info can go to a separate log file than the stdout console or stdout log file. Jake Quoting Dale, Matt [EMAIL PROTECTED]: Hi, We have a 3rd party application which has a nasty habit of chucking out a load of messages to stdout and stderr. Up until tomcat 5 we used a console Logger with swallowOutput turned on to catch all that output so it didnt end up in catalina.out. Obviously in 5.5 this is not possible and Log4J seems to be the way to go. I've tried this but not having much luck. I think it's just that I don't understand the log4j.properties file. Could someone perhaps post a sample that would do roughly what I need and I can tweak it from there. Ta Matt
RE: Tomcat Running out of Memory
Hi, As an addition to this i'd like to add that if you are not explicitly increasing your permanent generation then I'm not surprised that many JSPs would fill it up. You will probably find that the default Maximum size of the Permanent generation is 64MB and it is that which is filling up and not the full 1850MB of your heap. A tool you should look into is jvmstat which is available from sun and gives you a grahical representation of the heap real time so you can see what is running out. As a tip -XX:MaxPermSize=256M might be a good option for your JAVA_OPTS. Ta Matt -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, December 10, 2004 2:00 PM To: Tomcat Users List Subject: RE: Tomcat Running out of Memory Hi, -Our consultant-designed website consists of approximately 5000 JSP pages. None of these pages pull from a backend, the java was merely used to provide a persistent border. Are these JSPs precompiled? -Max heap size is set to 1850 megs, (which from what I understand is the max on a 32-bit system). It's not. The max in JDK 1.4 is 2GB for the vast majority of 32-bit platforms, including yours. You'd have to search far and hard to find any platform that imposes a memory limit that's not a power of 2 ;) -The server has 4 gigs of total RAM. Which doesn't matter because you're only giving the JVM 1850MB. I've done some searches on Google and in the archives and I can't seem to find any way to turn up the frequency of the garbage collection. To turn up the frequency of garbage collection, you would use several JVM options, as documented at http://java.sun.com/docs/hotspot/VMOptions.html. In fact, the related document at http://java.sun.com/docs/hotspot/gc1.4.2/index.html is vital reading. Everything seems to indicate that once a JSP is loaded into memory it stays there. Why wouldn't it? It's a compiled class that goes into the permanent generation (not the heap). Classes themselves (as opposed to their instances) would be unloaded only if possible and only at time of dire memory trouble, as judged by the VM. Is there some way to increase the max heap size? Yes, using the -Xmx parameter. Or some way to increase the frequency of garbage collection? Yes, see the VM options above. Or any other way to slow down the memory usage? Yes, to critically inspect the design and implementation of your app such that less memory is used. This is typically a performance tradeoff, as you would cache and retain less in memory, leaving more in the database or disk as needed. If you're not precompiling your JSPs, you should: compiling 5000 JSPs is a significant drain on resources, although those resource should largely be released. See the note on javac's memory leak in Tomcat's release notes. Yoav Shapira http://www.yoavshapira.com 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5 Webapp logging.
Title: Tomcat 5.5 Webapp logging. Hi, We have a 3rd party application which has a nasty habit of chucking out a load of messages to stdout and stderr. Up until tomcat 5 we used a console Logger with swallowOutput turned on to catch all that output so it didnt end up in catalina.out. Obviously in 5.5 this is not possible and Log4J seems to be the way to go. I've tried this but not having much luck. I think it's just that I don't understand the log4j.properties file. Could someone perhaps post a sample that would do roughly what I need and I can tweak it from there. Ta Matt Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5 Webapp logging.
That's the one I tried but never got too far. I'll give it a another whirl and it should cut down on the errors from the 3rd party app in the short term and as long as they aren't in catalina.out i'll be happy. Ta Matt -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 09 December 2004 15:18 To: Tomcat Users List Subject: RE: Tomcat 5.5 Webapp logging. Hi, The example in http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html is a decent start. Since your goal is to reduce messages being output to the log, at least for this 3rd party application, add a line like log4j.logger.rootPackageOf3rdPartyApp = WARN to the sample file at the above URL, and you should be all set. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 10:14 AM To: Tomcat Users List (E-mail) Subject: Tomcat 5.5 Webapp logging. Hi, We have a 3rd party application which has a nasty habit of chucking out a load of messages to stdout and stderr. Up until tomcat 5 we used a console Logger with swallowOutput turned on to catch all that output so it didnt end up in catalina.out. Obviously in 5.5 this is not possible and Log4J seems to be the way to go. I've tried this but not having much luck. I think it's just that I don't understand the log4j.properties file. Could someone perhaps post a sample that would do roughly what I need and I can tweak it from there. Ta Matt 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5 Webapp logging.
Hi, I can't even get it to create the log file and see no log4j related messages in the catalina.out. Below is my log4j.properties which is in common/classes log4j.rootLogger=debug, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=/usr/local/jakarta/tomcat-5.5.4/logs/tomcat.log log4j.appender.R.MaxFileSize=100MB log4j.appender.R.MaxBackupIndex=10 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n log4j.logger.org.apache.catalina=DEBUG, R I have put log4j-1.2.9.jar in common lib. I would have thought that at least the file would be created even if nothing was in it. Any ideas? Ta Matt -Original Message- From: Dale, Matt Sent: 09 December 2004 15:41 To: Tomcat Users List Subject: RE: Tomcat 5.5 Webapp logging. That's the one I tried but never got too far. I'll give it a another whirl and it should cut down on the errors from the 3rd party app in the short term and as long as they aren't in catalina.out i'll be happy. Ta Matt -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 09 December 2004 15:18 To: Tomcat Users List Subject: RE: Tomcat 5.5 Webapp logging. Hi, The example in http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html is a decent start. Since your goal is to reduce messages being output to the log, at least for this 3rd party application, add a line like log4j.logger.rootPackageOf3rdPartyApp = WARN to the sample file at the above URL, and you should be all set. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 10:14 AM To: Tomcat Users List (E-mail) Subject: Tomcat 5.5 Webapp logging. Hi, We have a 3rd party application which has a nasty habit of chucking out a load of messages to stdout and stderr. Up until tomcat 5 we used a console Logger with swallowOutput turned on to catch all that output so it didnt end up in catalina.out. Obviously in 5.5 this is not possible and Log4J seems to be the way to go. I've tried this but not having much luck. I think it's just that I don't understand the log4j.properties file. Could someone perhaps post a sample that would do roughly what I need and I can tweak it from there. Ta Matt 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5 Webapp logging.
Once again you are the man. The solution was probably somewhere in the archives, if so I apologise as I'm having a lazy day and it's easier to ask. I'm actually getting something now and just need to tweak the properties file to get what I want. Thanks again -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 09 December 2004 16:03 To: Tomcat Users List Subject: RE: Tomcat 5.5 Webapp logging. Hi, Also need commons-logging.jar (not commons-logging-api.jar) in common/lib for this to work. The docs have already been patched in CVS. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 11:00 AM To: Tomcat Users List Subject: RE: Tomcat 5.5 Webapp logging. Hi, I can't even get it to create the log file and see no log4j related messages in the catalina.out. Below is my log4j.properties which is in common/classes log4j.rootLogger=debug, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=/usr/local/jakarta/tomcat-5.5.4/logs/tomcat.log log4j.appender.R.MaxFileSize=100MB log4j.appender.R.MaxBackupIndex=10 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n log4j.logger.org.apache.catalina=DEBUG, R I have put log4j-1.2.9.jar in common lib. I would have thought that at least the file would be created even if nothing was in it. Any ideas? Ta Matt -Original Message- From: Dale, Matt Sent: 09 December 2004 15:41 To: Tomcat Users List Subject: RE: Tomcat 5.5 Webapp logging. That's the one I tried but never got too far. I'll give it a another whirl and it should cut down on the errors from the 3rd party app in the short term and as long as they aren't in catalina.out i'll be happy. Ta Matt -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 09 December 2004 15:18 To: Tomcat Users List Subject: RE: Tomcat 5.5 Webapp logging. Hi, The example in http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html is a decent start. Since your goal is to reduce messages being output to the log, at least for this 3rd party application, add a line like log4j.logger.rootPackageOf3rdPartyApp = WARN to the sample file at the above URL, and you should be all set. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 10:14 AM To: Tomcat Users List (E-mail) Subject: Tomcat 5.5 Webapp logging. Hi, We have a 3rd party application which has a nasty habit of chucking out a load of messages to stdout and stderr. Up until tomcat 5 we used a console Logger with swallowOutput turned on to catch all that output so it didnt end up in catalina.out. Obviously in 5.5 this is not possible and Log4J seems to be the way to go. I've tried this but not having much luck. I think it's just that I don't understand the log4j.properties file. Could someone perhaps post a sample that would do roughly what I need and I can tweak it from there. Ta Matt 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] 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent
RE: Tomcat 5.5 Webapp logging.
This sounds like kind of what I want but you've confused me. I basically want the System.out and stdout from a particular webapp to go to a specific log file that is rotated and seperate for each webapp. I've now got log4j working with a log4j.properties in common/classes. Everything is now logged to a rotated log file which is hunky dorey from that point of view. My second requirement is that the webapps be seperated into different log files. This, i've had trouble with, i've placed a log4j.properties in WEB-INF/classes but it seems to be ignored (log4j.jar is in the WEB-INF/lib). I could seperate things out in the the main log4j.properties but at least one of the apps is comprised mostly of jsps without a specific package so i'm unsure how to do this. But where you've really confused me is the mention of log4j.xml, this is the first i've seen on it. Could you perhaps tell me where it goes and point me to something that can help me decide what to put in it? In short I could do with a bit more detail if you wouldn't mind. Ta Matt -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: 09 December 2004 16:55 To: Tomcat Users List Subject: Re: Tomcat 5.5 Webapp logging. So, you want System.out stuff to go to the stdout, is that right? Just set up a console appender. Note that if you want to log to Tomcat's specially named localhost and context loggers, you'll need to use a log4j.properties file rather than log4j.xml because the naming pattern violates the XML spec's naming scheme for attributes of type ID. This is only true for Log4j-1.2.x. In Log4j 1.3, we no longer use a DOMConfigurator, but the new JoranConfigurator which doesn't use a DTD and, therefore, doesn't define logger name attributes as of type ID. You can define loggers and appenders in a way where Tomcat's info can go to a separate log file than the stdout console or stdout log file. Jake Quoting Dale, Matt [EMAIL PROTECTED]: Hi, We have a 3rd party application which has a nasty habit of chucking out a load of messages to stdout and stderr. Up until tomcat 5 we used a console Logger with swallowOutput turned on to catch all that output so it didnt end up in catalina.out. Obviously in 5.5 this is not possible and Log4J seems to be the way to go. I've tried this but not having much luck. I think it's just that I don't understand the log4j.properties file. Could someone perhaps post a sample that would do roughly what I need and I can tweak it from there. Ta Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OutOfMemory! Tomcat meets sudden spikes of used memory sometimes.
The fact that you have the same symptons in tomcat 4 and in 5 points towards your application as being the culprit. Is there any reason why you chose tomcat 5.0.18 instead of one of the many newer releases? I would find another profiler that works with both and try your tests again. Ta Matt -Original Message- From: Li Zhenxing [mailto:[EMAIL PROTECTED] Sent: 08 December 2004 13:47 To: [EMAIL PROTECTED] Subject: OutOfMemory! Tomcat meets sudden spikes of used memory sometimes. Hi folks, I am puzzled by the situation that Tomcat 4.1.31 meets sudden spikes of used memory sometimes. Then it will increase to throw OutOfMemory Exception and tomcat is hanging. Those memory spikes appear in my Web application for a long time. The odd thing is that it does not seem to progressively go up but rather spike up with each next full GC will clean less objects out. This is three pictures of the gc log. http://my.sme.cn/jsp/main/memoryleak.png http://my.sme.cn/jsp/main/memoryleak2.png http://my.sme.cn/jsp/main/memoryleak3.png I used HPjtune tool to watch the gc log. System using windows 2000 server, 2*CPU, 2G memory, JSDK 1.4.2_05, tomcat 4.1.31, And set -Xms1250m -Xmx1250m -server -XX:+UseParallelGC -Xloggc:D:\tomcat\logs\gc.log At first, I doubt if my app program has memory leak. But the application only runs by JSPs and javabeans.(I abandon using DBCP pool and any thread operation because of the memory leak.) I think simple JSPs can't cause the memory spike. I have a monitor.jsp to show my application status. http://my.sme.cn/jsp/main/monitor.jsp The WebSite uses normally below 100M memory heap through my monitor.jsp. It can run a few days, or a few hours before the spike appears. It is irregular. I read the access_log and want to find answer. But I can't find any clue. Then, I think tomcat 4.1.* has some bugs causing the memory leak. I upgraded my application to tomcat 5.0.18, but I met same thing. The WebSite's hits is more than 200,000 per day. I try to use OptimizeIt 6 profile to watch memory status, but OptimizeIt always exits after runs 2~3 hours. I guess this program maybe need using progressive memory of system to log things and analyze those when I notice Optimizeit used 1.6G system memory.(and OptimizeIt 6 profile only runs under tomcat 4.1.*! So I return to tomcat 4.1.31) I don't know how to cause the thing and how to find solution. Any suggestion is appreciated. Thanks. Li Zhenxing - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OT (Slightly): Large 64 bit JVMs
You can ignore this, I never put the -d64 switch so it was running in 32 bit mode. Ta Matt -Original Message- From: Dale, Matt Sent: 06 December 2004 20:47 To: Tomcat Users List Subject: RE: OT (Slightly): Large 64 bit JVMs I already know that the application will use that much space. We are using the Agressive Heap setting with an -Xmx switch so it will automatically use all the space that I'm allowing it. I should perhaps post some of the error's i'm receiving which vary depending on what size I set. I'll do this when I'm in the office tomorrow. There may be other kernel parameters that i've not considered or maybe it just doesnt work. Thanks for the input. Ta Matt -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 06 December 2004 18:04 To: Tomcat Users List Subject: RE: OT (Slightly): Large 64 bit JVMs Hi, I have a little bit of experience in this area, not much. The JVM will grow as much as it needs subject to your -Xms/-Xmx and other settings, as I'm sure you know already. So could it be it's not growing past 3300MB because it doesn't need to? Stress it out with a bigger load, or maybe try -Xms4G just for testing, to see what happens ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 1:02 PM To: Tomcat Users List (E-mail) Subject: OT (Slightly): Large 64 bit JVMs Hi, Does anyone have any experience of running large 64 bit JVMs on Solaris. We've got a box with 16GB of RAM and despite increasing the kernel parameter shmmax I can't get a JVM to be any bigger than about 3300MB. Any hints or tips or links appreciated. Ta Matt 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. Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OT (Slightly): Large 64 bit JVMs
Title: OT (Slightly): Large 64 bit JVMs Hi, Does anyone have any experience of running large 64 bit JVMs on Solaris. We've got a box with 16GB of RAM and despite increasing the kernel parameter shmmax I can't get a JVM to be any bigger than about 3300MB. Any hints or tips or links appreciated. Ta Matt Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OT (Slightly): Large 64 bit JVMs
I already know that the application will use that much space. We are using the Agressive Heap setting with an -Xmx switch so it will automatically use all the space that I'm allowing it. I should perhaps post some of the error's i'm receiving which vary depending on what size I set. I'll do this when I'm in the office tomorrow. There may be other kernel parameters that i've not considered or maybe it just doesnt work. Thanks for the input. Ta Matt -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 06 December 2004 18:04 To: Tomcat Users List Subject: RE: OT (Slightly): Large 64 bit JVMs Hi, I have a little bit of experience in this area, not much. The JVM will grow as much as it needs subject to your -Xms/-Xmx and other settings, as I'm sure you know already. So could it be it's not growing past 3300MB because it doesn't need to? Stress it out with a bigger load, or maybe try -Xms4G just for testing, to see what happens ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 1:02 PM To: Tomcat Users List (E-mail) Subject: OT (Slightly): Large 64 bit JVMs Hi, Does anyone have any experience of running large 64 bit JVMs on Solaris. We've got a box with 16GB of RAM and despite increasing the kernel parameter shmmax I can't get a JVM to be any bigger than about 3300MB. Any hints or tips or links appreciated. Ta Matt 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. Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat-user-unsubscribe@jakarta.apache.org
I think you've misunderstood, you need to send an email to that address, not to the list with that address in the title. Ta Matt -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: 05 December 2004 12:15 To: Tomcat User Mailing List Subject: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: clustering help
How do you distinguish between the two servers in your URL? For the clustering to work you need to hit both through a single entry point such as a load balancer. This is because the session id is stored as a cookie which is stuck to a hostname, an inherent cookie behaivour. If when you hit the second server you just change the hostname in your URL then this is never going to work. Ta Matt -Original Message- From: Nandish Rudra [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 22:40 To: 'Tomcat Users List' Subject: 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 distributable/ 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: Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true printToScreen=true Membership className=org.apache.catalina.cluster.mcast.McastService name=webres-qa-cluster mcastAddr=228.0.0.4 mcastPort=45565 mcastFrequency=500 mcastDropTime=3000 printToScreen=true debug=10/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto tcpListenPort=4002 tcpSelectorTimeout=100 tcpThreadCount=6 printToScreen=true/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=synchronous/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;/ !-- Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=true/ -- /Cluster 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
mod_proxy_ajp
Title: mod_proxy_ajp Hi, Anyone know where i can downloaded it? And anyone know if it works with httpd 2.0.x? Ta Matt Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_proxy_ajp
Thanks for the info, I think i'll wait until a stable 2.2 before using it in production. Ta Matt -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 14:54 To: Tomcat Users List Subject: Re: mod_proxy_ajp Dale, Matt wrote: Hi, Anyone know where i can downloaded it? http://svn.apache.org/repos/asf/httpd/httpd/trunk See http://httpd.apache.org/dev/ how to svn. And anyone know if it works with httpd 2.0.x? Yes. You'll need to replace exiting proxy module files with the one from 2.1, and use 2.1 build files. But the fact that it can be compiled on 2.0 branch is purely academic, and strongly not recommended. MT. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: List Won't Unsubscribe me
you shouldn't have to put anything in either the body or subject, try emailing the list owner if it's not successful -Original Message- From: Janet Ciavarelli [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 21:07 To: [EMAIL PROTECTED] Subject: List Won't Unsubscribe me Hello, I'm trying to unsubscribe. I send email to [EMAIL PROTECTED] and I've tried one email with unsubscribe in the Subject and the body blank, and one email with the Subject blank and the body with word unsubscribe. It's not working. I'm still getting email from the list. What exactly do I have to put in the Subject and the Message? Janet - 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: clustering help
do you have the distributable/ 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: Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true printToScreen=true Membership className=org.apache.catalina.cluster.mcast.McastService name=webres-qa-cluster mcastAddr=228.0.0.4 mcastPort=45565 mcastFrequency=500 mcastDropTime=3000 printToScreen=true debug=10/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto tcpListenPort=4002 tcpSelectorTimeout=100 tcpThreadCount=6 printToScreen=true/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=synchronous/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;/ !-- Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=true/ -- /Cluster 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 init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Dec 2, 2004 4:54:54 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Dec 2, 2004 4:54:55 PM org.apache.struts.util.PropertyMessageResources init 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
RE: Runtime.exec security issue?
This behaviour makes sense to me as you are trying to display an application but there is not necessarily a windows display associated with Tomcat so it doesnt know where to launch the app to. And by the lack of error message i'd guess that the application is actually getting launched but not displayed on the console. -Original Message- From: andy wix [mailto:[EMAIL PROTECTED] Sent: 29 November 2004 09:45 To: [EMAIL PROTECTED] Subject: Runtime.exec security issue? Hi, I am trying to run a simple exec command to open notepad with code as follows: Runtime runtime = Runtime.getRuntime(); Process proc = runtime.exec(C:\\WINDOWS\\system32\\notepad.exe); This code works fine from a stand-alone program but not run under Tomcat. I CAN successfully set the the system time and date using the same approach though. I get the same results when Tomcat is not run as a service. I am running Xp with Tomcat 5.0.27. I thought this might be a java permissions issue, but I don't get any exceptions thrown - just nothing happens. Thanks, Andy _ Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Runtime.exec security issue?
You could be right. I still reckon that launching graphical programs from tomcat is gonna be a bit dicey. -Original Message- From: andy wix [mailto:[EMAIL PROTECTED] Sent: 29 November 2004 10:13 To: [EMAIL PROTECTED] Subject: RE: Runtime.exec security issue? Hi Matt, I have tried running the Tomcat service with 'allow service to interact with desk top' checked in the service properties - I don't know if this should allow Tomat to know about Windows? Also, I don't think the application is actually getting launched as I don't see it in the processes list. Thanks, Andy _ Stay in touch with absent friends - get MSN Messenger http://www.msn.co.uk/messenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: persisted Exception error
At least one of the objects in your session does not implement the Serializable interface, which it would need to do in order for you to persist sessions accross a tomcat reboot. Ta Matt -Original Message- From: Francesco Pellegrini [mailto:[EMAIL PROTECTED] Sent: 29 November 2004 10:28 To: Tomcat-User-ML Subject: persisted Exception error Hi all, I have installed Tomcat 5.0.19, and after last last reboot I have found this error message in start log. What it should depends? 29-nov-2004 11.05.27 org.apache.catalina.session.StandardManager doLoad IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: db.DatiOp java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: db.DatiOp at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readArray(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at org.apache.catalina.session.StandardSession.readObject(StandardSession.java: 1401) at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.j ava:895) at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:463) at org.apache.catalina.session.StandardManager.load(StandardManager.java:390) at org.apache.catalina.session.StandardManager.start(StandardManager.java:703) at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:542) at org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig.java:3 49) Thanks Francesco. Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Runtime.exec security issue?
Have you tried the shutdown command without launching cmd? This could also be a permissions thing if you are running as a service. By default the service will run as a non-priviliged user which you'd have to change in order to reboot. -Original Message- From: andy wix [mailto:[EMAIL PROTECTED] Sent: 29 November 2004 10:35 To: [EMAIL PROTECTED] Subject: RE: Runtime.exec security issue? Hi, Actually, I was assuming this was a simple example of a runitme call. My real goal is to allow a privelidged user to re-boot the server with the following code: runtime.exec(cmd.exe /C shutdown -r -f -m \\myPC -t 50); I would also like to call a couple of batch files. These attempts have met with the same (nothing doing) response. Cheers Andy _ It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What Connector Should I Use?
JK or JK2 is the connector, the protocol is AGP. I would use the JK connector as it works and all advancements in JK2 are going to be back ported -Original Message- From: Thomas Charles Robinson [mailto:[EMAIL PROTECTED] Sent: 29 November 2004 16:00 To: [EMAIL PROTECTED] Subject: What Connector Should I Use? Hi, I'm trying to determine the correct connector to use these days. I've seen conflicting content on jakarta.apache.org: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html 15 November 2004 - JK2 is officially unsupported! (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/news/20041100.html#20041115.1) Is this the connector or the protocol? is mod_jk using the JK2 protocol? I'm very confused over this. Can some please enlighten me? Thanks in advance Reagards, Tom Robinson -- Thomas Robinson - IT Director Constant Stream Integration, Support, Development and Training Linux, Oracle, Windows, Networking (Daedalus Compass Pty Ltd)Cell: +44 (0)7879 428 968 132 Clifden Court, Clifden Road Work: +44 (0)20 8891 6262 Twickenham, Middlesex, TW1 4LRFax: +44 (0)20 8891 6363 United Kingdom CONFIDENTIALITY: Copyright (C). This message with any appended or attached material is intended for addressees only and may not be copied or forwarded to or used by other parties without permission. Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk.so for HP-UX 11.11
have you got the Gnu versions of all the tools, ie gcc, make etc? -Original Message- From: Gibson, Danny [mailto:[EMAIL PROTECTED] Sent: 29 November 2004 18:01 To: '[EMAIL PROTECTED]' Subject: mod_jk.so for HP-UX 11.11 Hello All, Can someone put me out of my misery? I have attempted to build the mod_jk.so for Apache 1.3.33 on HP-UX 11.11 multiple times and failing miserable. I have tried with multiple versions of the src but they ALL continue to fail on line 22 of the apache13/Makefile referencing the following during the make: # make No suffix list. Making all in common --- This runs but errors after performing the make to the apache-1.3 Makefile Making all in apache-1.3 Make: line 22: syntax error. Stop. *** Error exit code 1 Line 21 - JK_DIR := .. Line 22 - BUILD_DIR = ${JK_DIR}/../build/jk/apache13 I have tried everything I can think of to get it to work but alas, I am obviously not smart enough to figure it out. Does someone have it already built that I could sponge off of in an attempt to get it working for I retire? Thanks In Advance, Danny Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat
Once you get the connector working you could disable tomcat on 8080 so it is only accessible through apache. I think you can also you use filters to filter which ip addresses are allowed to connect but you'll need to read up the docs on that. -Original Message- From: Allen Beacon [mailto:[EMAIL PROTECTED] Sent: 26 November 2004 08:46 To: [EMAIL PROTECTED] Subject: Re: Tomcat I´ll check the configuration.Thanks Do you know how to configure the tomcat manager page the one at /opt/jakarta/tomcat/webapps/ROOT so nobody from the internet can access it but I could get to it, to upload servlets but only locally. I know that I can change the port but that´s not what I´m looking for. thanks in advance! Then you haven't configured it correctly! It is not enough to just install it... I am using this myself without any problems... BTJ Allen Beacon wrote: I have the connector installed but I still need to type :8080 in order to access the applet pages http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html BTJ Allen Beacon wrote: Sorry Quinton I should reply to the list, as I told you that could do it.however, I was looking for something like using a virtual server so my users can use htlm pages from Apache2 and servlets from Tomcat and I don´t want to show in the url :8080 I was looking for something like using a virtual server so depending of the url the use they will use static html pages from apache2 or servlets from Tomcat. On Friday 26 November 2004 07:02, [EMAIL PROTECTED] wrote: Hi there, I would like to access my pages created with applets in Tomcat by typing the host in the URL and not having to add the default port for Tomcat (:8080). I have Apache2 and the apache2-jakarta-tomcat connectors installed. I created a index.html with a meta-tag in it that automatically redirects the browser to the tomcat port. I needed to keep my Apache for other purposes and changing the default connector of Tomcat to Port 80 was not an option. Here is my code: html head meta http-equiv=refresh content=1;URL=http://your.server.site:8080/; /head body /body /html Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Command, n.: Statement presented by a human and accepted by a computer in such a manner as to make the human feel as if he is in control. - 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] - 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]