Re: how to integrate tomcat with IDE tools like eclipse,Netbeans?
2009/10/7 srinivas2828 srinivas2...@gmail.com: Hi Deepa I integrated tomcat with eclipse(I downloaded Eclipse-Galelio) then i got and I am facing one problem that when I start Tomcat server it came with one error message which says Starting Tomcatv6.0 Server at localhost has encoutered a problem, Port 80 required by Tomcat v6.0 server at localhost already in use. the server may already running in another process, or a system process may be using the port,To start this server you will need to stop the other process or change the port number(s) any idea As it says, you will need to stop the other process or change the port number(s) Either change the numbers by editing server.xml (that is inside the Servers project), or using the GUI, e.g. as is described here (found thanks to Google): http://techteam.wordpress.com/2009/02/13/changing-the-tomcat-port-settings-in-eclipse/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Running tomcat as native
Hi all, I am trying to run tomcat as native. I downloaded tcnative-1.dll and copied it to tomcat/bin. Still am getting the INFO : The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: Can anyone please give me some inputs on this?? Vivek
Re: Running tomcat as native
Hi Vivek, You can try this code to get the paths, public static void main(String[] args){ for(String path : System.getProperty(java.library.path).split(File.pathSeparator)) System.out.println(path); } Please put the DLL file into those paths, it may help you! Kind regards, Mercy On Wed, 07 Oct 2009 15:35:11 +0800, Vivek Shanmughan vivsh...@cisco.com wrote: Hi all, I am trying to run tomcat as native. I downloaded tcnative-1.dll and copied it to tomcat/bin. Still am getting the INFO : The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: Can anyone please give me some inputs on this?? Vivek -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat gets hanged and sessions not releasing
--- Original Message --- From: sudip pattanayak getsudi...@yahoo.co.in Subject: Tomcat gets hanged and sessions not releasing Actually the tomcat session kind of gets hanged and the session for the troubled user does not get released and the force full log off feature does not work. Restarting the Tomcat solves the problem. Any inputs on this. It is a bug in your force log off feature. Without access to the relevant soure code, it is hard to help. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: JspServlet Issue
From: Mercy Ma techme...@gmail.com To: users@tomcat.apache.org Sent: 07/10/09, 06:42:17 Subject: JspServlet Issue Hi there, I did write some code to create dynamic compiler for JSP pages, because our application sets development options parameter to be false for JspServlet. Surely much simpler to change the app so it doesn't do that. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: JspServlet Issue
Hi Mark, What did you mean change the app? Could you give more information? Thank you. Kind regards, Mercy On Wed, 07 Oct 2009 15:50:28 +0800, Mark Thomas ma...@apache.org wrote: From: Mercy Ma techme...@gmail.com To: users@tomcat.apache.org Sent: 07/10/09, 06:42:17 Subject: JspServlet Issue Hi there, I did write some code to create dynamic compiler for JSP pages, because our application sets development options parameter to be false for JspServlet. Surely much simpler to change the app so it doesn't do that. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: JspServlet Issue
--- Original Message --- From: Mercy techme...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: 07/10/09, 08:57:24 Subject: Re: JspServlet Issue Hi Mark, What did you mean change the app? Could you give more information? Don't set the development parameter of the JspServlet to false. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: JspServlet Issue
Hi Mark, Thank you for your response, actually, I has found a way to fulfill my requirement that it can compile the JSP pages when development parameter is false. My question is that why my compiler using JspServletWrapper has been compiled some class files of Jsp file, the JasperLoader can't find them,at the same time, The other pages that were compiled by JspServlet in first time could be found by JapserLoader. The exception told me that org/apache/jsp/_1_jsp class can't be found,but it still exists and its modified time is latest. Is it a bug of JapserLoader or URLClassLoader? I expect you response, thank you. :) Kind regards, Mercy On Wed, 07 Oct 2009 16:13:41 +0800, Mark Thomas ma...@apache.org wrote: --- Original Message --- From: Mercy techme...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: 07/10/09, 08:57:24 Subject: Re: JspServlet Issue Hi Mark, What did you mean change the app? Could you give more information? Don't set the development parameter of the JspServlet to false. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Running tomcat as native
Thank you Mercy, I tried copying the dll to one of the folders in java.library.path. But even this didn't help. Is there a dependency between tcnative-1.dll version and tomcat version . Vivek -Original Message- From: Mercy [mailto:techme...@gmail.com] Sent: Wednesday, October 07, 2009 1:16 PM To: Tomcat Users List Subject: Re: Running tomcat as native Hi Vivek, You can try this code to get the paths, public static void main(String[] args){ for(String path : System.getProperty(java.library.path).split(File.pathSeparator)) System.out.println(path); } Please put the DLL file into those paths, it may help you! Kind regards, Mercy On Wed, 07 Oct 2009 15:35:11 +0800, Vivek Shanmughan vivsh...@cisco.com wrote: Hi all, I am trying to run tomcat as native. I downloaded tcnative-1.dll and copied it to tomcat/bin. Still am getting the INFO : The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: Can anyone please give me some inputs on this?? Vivek -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Running tomcat as native
Hi, welcome, the following links may help for you: http://mirrors.dotsrc.org/apache/tomcat/tomcat-connectors/native/1.1.16/binaries/win64/README.html, http://mirrors.dotsrc.org/apache/tomcat/tomcat-connectors/native/1.1.16/binaries/win32/README.htmlFYI:Apache Tomcat Native 1.1.16 for WIN32The binaries were build using the following dependent libraries: APR 1.2.8 OpenSSL 0.9.8i The Apache Tomcat ProjectKind regards,MercyOn Wed, 07 Oct 2009 16:36:26 +0800, Vivek Shanmughan vivsh...@cisco.com wrote: Thank you Mercy, I tried copying the dll to one of the folders in java.library.path. But even this didn't help. Is there a dependency between tcnative-1.dll version and tomcat version . Vivek -Original Message- From: Mercy [mailto:techme...@gmail.com] Sent: Wednesday, October 07, 2009 1:16 PM To: Tomcat Users List Subject: Re: Running tomcat as native Hi Vivek, You can try this code to get the paths, public static void main(String[] args){ for(String path : System.getProperty("java.library.path").split(File.pathSeparator)) System.out.println(path); } Please put the DLL file into those paths, it may help you! Kind regards, Mercy On Wed, 07 Oct 2009 15:35:11 +0800, Vivek Shanmughan vivsh...@cisco.com wrote: Hi all, I am trying to run tomcat as native. I downloaded tcnative-1.dll and copied it to tomcat/bin. Still am getting the INFO : "The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: " Can anyone please give me some inputs on this?? Vivek-- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Re: how to integrate tomcat with IDE tools like eclipse,Netbeans?
I really appriciate your help but got one more problem,please find attached copy of image http://www.nabble.com/file/p25783409/Screenshot.png Screenshot.png Konstantin Kolinko wrote: 2009/10/7 srinivas2828 srinivas2...@gmail.com: Hi Deepa I integrated tomcat with eclipse(I downloaded Eclipse-Galelio) then i got and I am facing one problem that when I start Tomcat server it came with one error message which says Starting Tomcatv6.0 Server at localhost has encoutered a problem, Port 80 required by Tomcat v6.0 server at localhost already in use. the server may already running in another process, or a system process may be using the port,To start this server you will need to stop the other process or change the port number(s) any idea As it says, you will need to stop the other process or change the port number(s) Either change the numbers by editing server.xml (that is inside the Servers project), or using the GUI, e.g. as is described here (found thanks to Google): http://techteam.wordpress.com/2009/02/13/changing-the-tomcat-port-settings-in-eclipse/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://www.nabble.com/how-to-integrate-tomcat-with-IDE-tools-like-eclipse%2CNetbeans--tp25764753p25783409.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Comet question with Tomcat
Hi all, I am using Tomcat6 together with Comet. I implemented as described in the article Advanced IO and Tomcat the servlet, message sender ... The main reason for using comet is that I would like to implement a kind of streaming, what means: I am launching from the client with a AJAX request that is processed by the servlet: on the server the EventType.BEGIN is passed to the event method and than I start to run an specific algorithm. In this algorithm, whenever a specific event occurs, the message sender is notified and writes into the response write a content. This stream is send to the client, parsed and displayed in the page. Unfortunately on the client I only see the content send from message sender after the first event. All others are not send to the client even if the message sender writes it out int the response which is still open. On client side the javascript function (see below go()) is invoked only once. Any idea what I am doing wrong? function go(){ var url = http://myHost:8080/myServlet;; var request = new XMLHttpRequest(); request.open(POST, url, true); request.setRequestHeader(Content-Type, application/x-javascript;); request.onreadystatechange = function(){ if (request.readyState == 4) { if (request.status == 200) { if (request.responseText) { document.getElementById(msgContainer).innerHTML = request.responseText; } } } }; request.send(null); } - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: how to integrate tomcat with IDE tools like eclipse,Netbeans?
Hi, You could add the src.zip under JDK folder instead of JRE,please take a look at the attached image file. Kind regards, Mercy On Wed, 07 Oct 2009 17:34:18 +0800, srinivas2828 srinivas2...@gmail.com wrote: I really appriciate your help but got one more problem,please find attached copy of image http://www.nabble.com/file/p25783409/Screenshot.png Screenshot.png Konstantin Kolinko wrote: 2009/10/7 srinivas2828 srinivas2...@gmail.com: Hi Deepa I integrated tomcat with eclipse(I downloaded Eclipse-Galelio) then i got and I am facing one problem that when I start Tomcat server it came with one error message which says Starting Tomcatv6.0 Server at localhost has encoutered a problem, Port 80 required by Tomcat v6.0 server at localhost already in use. the server may already running in another process, or a system process may be using the port,To start this server you will need to stop the other process or change the port number(s) any idea As it says, you will need to stop the other process or change the port number(s) Either change the numbers by editing server.xml (that is inside the Servers project), or using the GUI, e.g. as is described here (found thanks to Google): http://techteam.wordpress.com/2009/02/13/changing-the-tomcat-port-settings-in-eclipse/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: how to integrate tomcat with IDE tools like eclipse,Netbeans?
Oh..thats Great and can you tell me how can i see the server status success or not and can i see the default success page in eclipse and is it possibe? or ele browser?dont mind for this question and I am newbie to this kind of configurations... O Mercy Ma wrote: Hi, You could add the src.zip under JDK folder instead of JRE,please take a look at the attached image file. Kind regards, Mercy On Wed, 07 Oct 2009 17:34:18 +0800, srinivas2828 srinivas2...@gmail.com wrote: I really appriciate your help but got one more problem,please find attached copy of image http://www.nabble.com/file/p25783409/Screenshot.png Screenshot.png Konstantin Kolinko wrote: 2009/10/7 srinivas2828 srinivas2...@gmail.com: Hi Deepa I integrated tomcat with eclipse(I downloaded Eclipse-Galelio) then i got and I am facing one problem that when I start Tomcat server it came with one error message which says Starting Tomcatv6.0 Server at localhost has encoutered a problem, Port 80 required by Tomcat v6.0 server at localhost already in use. the server may already running in another process, or a system process may be using the port,To start this server you will need to stop the other process or change the port number(s) any idea As it says, you will need to stop the other process or change the port number(s) Either change the numbers by editing server.xml (that is inside the Servers project), or using the GUI, e.g. as is described here (found thanks to Google): http://techteam.wordpress.com/2009/02/13/changing-the-tomcat-port-settings-in-eclipse/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://www.nabble.com/how-to-integrate-tomcat-with-IDE-tools-like-eclipse%2CNetbeans--tp25764753p25783760.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: JspServlet Issue
Mercy wrote: Hi Mark, Thank you for your response, actually, I has found a way to fulfill my requirement that it can compile the JSP pages when development parameter is false. My question is that why my compiler using JspServletWrapper has been compiled some class files of Jsp file, the JasperLoader can't find them,at the same time, The other pages that were compiled by JspServlet in first time could be found by JapserLoader. The exception told me that org/apache/jsp/_1_jsp class can't be found,but it still exists and its modified time is latest. Is it a bug of JapserLoader or URLClassLoader? Neither. It is a bug of your custom re-compilation code. I still don't see why you are trying to re-invent the wheel. Just don't set development=false. Mark I expect you response, thank you. :) Kind regards, Mercy On Wed, 07 Oct 2009 16:13:41 +0800, Mark Thomas ma...@apache.org wrote: --- Original Message --- From: Mercy techme...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: 07/10/09, 08:57:24 Subject: Re: JspServlet Issue Hi Mark, What did you mean change the app? Could you give more information? Don't set the development parameter of the JspServlet to false. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Running tomcat as native
Vivek Shanmughan wrote: Hi all, I am trying to run tomcat as native. I downloaded tcnative-1.dll and copied it to tomcat/bin. Still am getting the INFO : The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: Can anyone please give me some inputs on this?? Operating system? Tomcat version? Exactly what did you download? Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: how to integrate tomcat with IDE tools like eclipse,Netbeans?
Hi, At first , you need to create a web project , and the add it into tomcat server. Later, you create a new jsp page, select it and click right button, the pop-up menu dispears, select Run As - Run on Server, the server is Ok when that page is present. :-) Kind regards, Mercy srinivas2828 wrote: Oh..thats Great and can you tell me how can i see the server status success or not and can i see the default success page in eclipse and is it possibe? or ele browser?dont mind for this question and I am newbie to this kind of configurations... O Mercy Ma wrote: Hi, You could add the src.zip under JDK folder instead of JRE,please take a look at the attached image file. Kind regards, Mercy On Wed, 07 Oct 2009 17:34:18 +0800, srinivas2828 srinivas2...@gmail.com wrote: I really appriciate your help but got one more problem,please find attached copy of image http://www.nabble.com/file/p25783409/Screenshot.png Screenshot.png Konstantin Kolinko wrote: 2009/10/7 srinivas2828 srinivas2...@gmail.com: Hi Deepa I integrated tomcat with eclipse(I downloaded Eclipse-Galelio) then i got and I am facing one problem that when I start Tomcat server it came with one error message which says Starting Tomcatv6.0 Server at localhost has encoutered a problem, Port 80 required by Tomcat v6.0 server at localhost already in use. the server may already running in another process, or a system process may be using the port,To start this server you will need to stop the other process or change the port number(s) any idea As it says, you will need to stop the other process or change the port number(s) Either change the numbers by editing server.xml (that is inside the Servers project), or using the GUI, e.g. as is described here (found thanks to Google): http://techteam.wordpress.com/2009/02/13/changing-the-tomcat-port-settings-in-eclipse/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: JspServlet Issue
Hi Mark, I just want to compile the pages what i need, not all. Actually,the most pages ware compiled by ANT,thus, our application does not set the development parameter is true. What's more , I did not re-invent the wheel rather than I re-use the JspServlet and its correlative classes. Thank you for your time. Kind regards, Mercy On Wed, 07 Oct 2009 18:15:29 +0800, Mark Thomas ma...@apache.org wrote: Mercy wrote: Hi Mark, Thank you for your response, actually, I has found a way to fulfill my requirement that it can compile the JSP pages when development parameter is false. My question is that why my compiler using JspServletWrapper has been compiled some class files of Jsp file, the JasperLoader can't find them,at the same time, The other pages that were compiled by JspServlet in first time could be found by JapserLoader. The exception told me that org/apache/jsp/_1_jsp class can't be found,but it still exists and its modified time is latest. Is it a bug of JapserLoader or URLClassLoader? Neither. It is a bug of your custom re-compilation code. I still don't see why you are trying to re-invent the wheel. Just don't set development=false. Mark I expect you response, thank you. :) Kind regards, Mercy On Wed, 07 Oct 2009 16:13:41 +0800, Mark Thomas ma...@apache.org wrote: --- Original Message --- From: Mercy techme...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: 07/10/09, 08:57:24 Subject: Re: JspServlet Issue Hi Mark, What did you mean change the app? Could you give more information? Don't set the development parameter of the JspServlet to false. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Running tomcat as native
Operating system - Windows XP SP2 Tomcat version - apache-tomcat-5.5.28 Exactly what did you download - tcnative-1.dll from the location http://tomcat.heanet.ie/native/1.1.14/binaries/win32/ Vivek -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Wednesday, October 07, 2009 3:47 PM To: Tomcat Users List Subject: Re: Running tomcat as native Vivek Shanmughan wrote: Hi all, I am trying to run tomcat as native. I downloaded tcnative-1.dll and copied it to tomcat/bin. Still am getting the INFO : The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: Can anyone please give me some inputs on this?? Operating system? Tomcat version? Exactly what did you download? Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Running tomcat as native
Vivek Shanmughan wrote: Operating system - Windows XP SP2 Tomcat version - apache-tomcat-5.5.28 Exactly what did you download - tcnative-1.dll from the location http://tomcat.heanet.ie/native/1.1.14/binaries/win32/ You should use 1.1.16 from here: http://tomcat.apache.org/download-native.cgi Updating probably won't fix the issue but it would be a good first step. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Running tomcat as native
Thanks Mark, It worked with tcnative-1.dll 1.1.16 and apache-tomcat-6.0.20. Let me find the suitable tcnative-1.dll for apache-tomcat-5.5.28 Vivek -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Wednesday, October 07, 2009 4:32 PM To: Tomcat Users List Subject: Re: Running tomcat as native Vivek Shanmughan wrote: Operating system - Windows XP SP2 Tomcat version - apache-tomcat-5.5.28 Exactly what did you download - tcnative-1.dll from the location http://tomcat.heanet.ie/native/1.1.14/binaries/win32/ You should use 1.1.16 from here: http://tomcat.apache.org/download-native.cgi Updating probably won't fix the issue but it would be a good first step. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Running tomcat as native
Vivek Shanmughan wrote: Thanks Mark, It worked with tcnative-1.dll 1.1.16 and apache-tomcat-6.0.20. Let me find the suitable tcnative-1.dll for apache-tomcat-5.5.28 1.1.16 should work with 5.5.28 as well. I suspect that you have hit this issue: https://issues.apache.org/bugzilla/show_bug.cgi?id=47712 If you need to use 5.5.28 then you'll need to patch Tomcat to make this work. Mark Vivek -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Wednesday, October 07, 2009 4:32 PM To: Tomcat Users List Subject: Re: Running tomcat as native Vivek Shanmughan wrote: Operating system - Windows XP SP2 Tomcat version - apache-tomcat-5.5.28 Exactly what did you download - tcnative-1.dll from the location http://tomcat.heanet.ie/native/1.1.14/binaries/win32/ You should use 1.1.16 from here: http://tomcat.apache.org/download-native.cgi Updating probably won't fix the issue but it would be a good first step. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
JNI problem
-2.0.jar 7f5620ccf000-7f5620cd3000 r-xs 09:07 134504357 /home/java/app/WEB-INF/lib/gdata-health-2.0.jar 7f5620cd3000-7f5620cd4000 r-xs 09:07 134504371 /home/java/app/WEB-INF/lib/gdata-finance-meta-2.0.jar 7f5620cd4000-7f5620cdd000 r-xs 09:07 134466631 /home/java/app/WEB-INF/lib/gdata-finance-2.0.jar 7f5620cdd000-7f5620cde000 r-xs 09:07 134466627 /home/java/app/WEB-INF/lib/gdata-docs-meta-2.0.jar 7f5620cde000-7f5620ce3000 r-xs 09:07 134466620 /home/java/app/WEB-INF/lib/gdata-docs-2.0.jar 7f5620ce3000-7f5620d5d000 r-xs 09:07 134466644 /home/java/app/WEB-INF/lib/gdata-core-1.0.jar 7f5620d5d000-7f5620d5e000 r-xs 09:07 134466593 /home/java/app/WEB-INF/lib/gdata-contacts-meta-2.0.jar 7f5620d5e000-7f5620d64000 r-xs 09:07 134466612 /home/java/app/WEB-INF/lib/gdata-contacts-2.0.jar 7f5620d64000-7f5620d65000 r-xs 09:07 134504362 /home/java/app/WEB-INF/lib/gdata-codesearch-meta-2.0.jar 7f5620d65000-7f5620d69000 r-xs 09:07 134466645 /home/java/app/WEB-INF/lib/gdata-codesearch-2.0.jar 7f5620d69000-7f5620d6a000 r-xs 09:07 134504363 /home/java/app/WEB-INF/lib/gdata-client-meta-1.0.jar 7f5620d6a000-7f5620d81000 r-xs 09:07 134466619 /home/java/app/WEB-INF/lib/gdata-client-1.0.jar 7f5620d81000-7f5620d82000 r-xs 09:07 134466655 /home/java/app/WEB-INF/lib/gdata-calendar-meta-2.0.jar 7f5620d82000-7f5620d8f000 r-xs 09:07 134466615 /home/java/app/WEB-INF/lib/gdata-calendar-2.0.jar 7f5620d8f000-7f5620d9 r-xs 09:07 134466599 /home/java/app/WEB-INF/lib/gdata-books-meta-1.0.jar 7f5620d9-7f5620d96000 r-xs 09:07 134504355 /home/java/app/WEB-INF/lib/gdata-books-1.0.jar 7f5620d96000-7f5620d97000 r-xs 09:07 134466626 /home/java/app/WEB-INF/lib/gdata-blogger-meta-2.0.jar 7f5620d97000-7f5620d9b000 r-xs 09:07 134466606 /home/java/app/WEB-INF/lib/gdata-blogger-2.0.jar 7f5620d9b000-7f5620dac000 r-xs 09:07 134466632 /home/java/app/WEB-INF/lib/gdata-base-1.0.jar 7f5620dac000-7f5620dad000 r-xs 09:07 134466614 /home/java/app/WEB-INF/lib/gdata-appsforyourdomain-meta-1.0.jar 7f5620dad000-7f5620dbc000 r-xs 09:07 134466600 /home/java/app/WEB-INF/lib/gdata-appsforyourdomain-1.0.jar 7f5620dbc000-7f5620dcf000 r-xs 09:07 134466607 /home/java/app/WEB-INF/lib/ezmorph-1.0.2.jar 7f5620dcf000-7f5620dec000 r-xs 09:07 134504360 Thanks, Mohamed Mohamedin __ Information from ESET NOD32 Antivirus, version of virus signature database 4487 (20091007) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
Re: alias problem in tomcat5.0 + apache1.3
Hi Partha, It looks like you're asking for two things: 1) that your server respond to partha16 instead of localhost, and 2) that your server respond on port 80 instead of port 8085 Is that right? 1) is a DNS issue. If http://localhost:8085/DOMAIN is working now, I can help you get to http://localhost/DOMAIN, I can get rid of 8085, but I can't help you change the server hostname. That's an issue outside tomcat. 2) You have two options. You can either change tomcat's http port in server.xml, and stop running Apache, or you can add a ProxyPass directive to your VirtualHost block in Apache. I found your current httpd.conf file here: http://www.nabble.com/file/p25780775/httpd.conf Try a VirtualHost block like so: VirtualHost *:80 DocumentRoot C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14\DOMAIN ServerName partha16 Alias /partha16/ C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.14\DOMAIN\DOMAIN ErrorLog logs/partha1.com-error_log #JkMount /context ProxyPass / https://127.0.0.1:8085/ ProxyPassReverse / https://127.0.0.1:8085/ ProxyPreserveHost on /VirtualHost Hope that helps, good luck. - Nada partha_ctc wrote: Hi, we have tomcat5.0 and apache1.3. my aim is instead of http://localhost:8085/DOMAIN, how can i call http://partha16/DOMAIN. for that i have mdified server.xml and httpd.conf file. but it says page not found. i have attached the httpd.conf file. first i tried with virtual host , but it has not worked. so i commented the virtualhost tag. Can some one help me in this configuration peoble? == In apache: httpd.conf, i have following line: httpd.conf Directory D:/software/Tomcat 5.0/DOMAIN/DOMAIN Order allow,deny Allow from all /Directory DocumentRoot D:/software/Tomcat 5.0/DOMAIN/DOMAIN Alias /partha16 D:/software/Tomcat 5.0/DOMAIN/DOMAIN/ Location /partha16 Order allow,deny Allow from all # DirectoryIndex portal.htm /Location == following lines has been added in server.xml server.xml Host name=partha16 debug=1 appBase=DOMAIN unpackWARs=true autoDeploy=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=DOMAIN_com. suffix=.log timestamp=true/ Context path= docBase=DOMAIN debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=DOMAIN. suffix=.log timestamp=true / Resource name=mail/Session auth=Container type=javax.mail.Session/ ResourceParams name=mail/Session parameter namemail.smtp.host/name valuelocalhost/value /parameter /ResourceParams /Context /Host http://www.nabble.com/file/p25769060/httpd.conf httpd.conf - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Getting an error with the Tomcat Manager on version 6.0.14.
I am getting the following error when trying to access the Tomcat Manager on Tomcat 6.0.14: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error allocating a servlet instance org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:619) root cause java.lang.SecurityException: Servlet of class org.apache.catalina.manager.HTMLManagerServlet is privileged and cannot be loaded by this web application org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:619) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.Apache Tomcat/6.0.14 Regards, Razvan Poenaru |Sr.Programmer/Analyst |Space Missions -MDA (905) 790 2800 x4626|razvan.poen...@mdacorporation.com|www.mdacorporation.com Canada – 9445 Airport Road, Brampton, ON – L6S 4J3 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Default character encoding for ServletRequest
Hi Peter, Peter Crowther wrote: What are you trying to achieve? If we know more about the problem you're trying to solve, we may be able to suggest some different approaches. The client receives an HTML page with contentType=text/html; charset=utf-8 On that page is a POST form. When I evaluate the posted data, they are NOT utf-8 encoded. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Default character encoding for ServletRequest
Hi Markus, thanks for your hints. Markus Meyer wrote: It all depends on the client. IIRC if you set the charset in the content type header to utf-8, like this contentType=text/html; charset=utf-8 most browsers will then use utf-8 for HTTP GET and POST requests when responding to the given page. No this doesn't work. Tomcat version 6.0.20, Firefox version 3.5.3, IE 7 -Halm - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Default character encoding for ServletRequest
Hi Andre-John, Andre-John Mas wrote: I wan't do it within the application. I prefer to configure the app container or the app itself. I had asked for this too a while back, but I was told the RFC indicates ISO-8859-1, so the developers didn't want to allow you to change the default encoding used by the application server, which is a shame. I say it is a shame, because we can already change the URL encoding and being able to standardise your deployment solutions on UTF-8 would be so much nicer, IMHO. Full ack. My solution was to use a character set filter, described here: http://wiki.apache.org/tomcat/Tomcat/UTF-8 I did that too, but in my opinion that is no solution, it is just an workaround. Thanks, Halm - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Default character encoding for ServletRequest
Halm Reusser wrote: Hi Markus, thanks for your hints. Markus Meyer wrote: It all depends on the client. IIRC if you set the charset in the content type header to utf-8, like this contentType=text/html; charset=utf-8 most browsers will then use utf-8 for HTTP GET and POST requests when responding to the given page. No this doesn't work. Tomcat version 6.0.20, Firefox version 3.5.3, IE 7 http://wiki.apache.org/tomcat/FAQ/CharacterEncoding#Q4 Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: ssl_error_internal_error_alert in firefox only, dependent on jdk version (tomcat 5.5.26)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nada, On 10/6/2009 4:51 PM, Nada O'Neal wrote: I don't have an EV cert, it's just a standard cert signed by Equifax. I have similar certs working on other servers. Again, it's the upgrade from one java to another that seems to cause the problem - running java 1.5, I don't have this issue. If you've recently upgraded, then any changes you made to the system keystore may have been lost (which I think is a foolish thing to do, but it looks like each version of the JRE gets its own keystore, and upgrades don't merge or anything like that). $ keytool -list -keystore /path/to/keystore Enter keystore password: Keystore type: JKS Keystore provider: SUN Your keystore contains 2 entries root, Sep 29, 2009, trustedCertEntry, Certificate fingerprint (MD5): [...] tomcat, Sep 29, 2009, PrivateKeyEntry, Certificate fingerprint (MD5): [...] ... is this wrong? I'm not sure. That depends on if this is /your/ keystore or the JRE's keystore. It also depends on what the details of those certs are: do any of them have to do with Equifax? All you really need is: 1. Equifax CA cert in your keystore 2. Any Equifax intermediate certificates in your keystore 3. Your own certificate in your keystore 4. The web browser has to trust either #1 or #2 I'm not altogether clear if it all has to be the same keystore: I think that the JCE reads the system one no matter what, which should include anything Equifax has at the top-level. You may have to import their intermediate cert into your own keystore (or into the system one, again, if you upgraded). There's nothing you can do about #4 above, except that if the browser trusts, say, #1, but you aren't providing the certificate chain between #3 and #1 (via #2), then you'll get this error from the client. I hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrMyjcACgkQ9CaO5/Lv0PAlpQCgsBd2nlqqEwa4fqMKaJlf0YAi ELwAn2+cUWZVBqJOSOKAfm8i81qLucQu =augc -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Default character encoding for ServletRequest
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Halm, On 10/7/2009 11:44 AM, Halm Reusser wrote: Peter Crowther wrote: What are you trying to achieve? If we know more about the problem you're trying to solve, we may be able to suggest some different approaches. The client receives an HTML page with contentType=text/html; charset=utf-8 On that page is a POST form. When I evaluate the posted data, they are NOT utf-8 encoded. /Most/ clients will act the way you expect, yet, there is no requirement for them to do so. What client is this, by the way? See the W3C document for the form element, specifically the accept-charset attribute: http://www.w3.org/TR/html401/interact/forms.html#adef-accept-charset Read the part about UNKNOWN and how clients MAY interpret this as use the current page encoding. This is RFC 'MAY' which basically means it's a recommendation, but not at all required. If you configure your form like this, the client is essentially required to use your specified encoding if it expects the server to behave correctly: form action=... method=POST accept-charset=UTF-8 ... /form Give that a try and see what happens. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrM0zcACgkQ9CaO5/Lv0PC2UQCgsUN9fcJvaLnQ1x1hTGRo8w0s nskAoJ+vIkGEdWg5+pQuiDp8yMUcw2CW =x7+0 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
mod_jk problem related to multiple hosts on Apache and Tomcat
Hello, I have a mod_jk problem related to multiple hosts on Apache and Tomcat My setup is Centos 5.3 + Apache HTTPD 2.2.3 + Tomcat 5 httpd.conf contains (Just before section 3) Basic mod_jk directives. At the end it contains two virtual hosts: (all sections are placed in proper files, but I have grouped them to make it easier to read) VirtualHost *:80 ServerName share.domain.com DocumentRoot /var/lib/tomcat5/ShareApp/share/ Alias / /var/lib/tomcat5/ShareApp/share JkMount /* share_wrk Options FollowSymLinks /VirtualHost Worker file defined: worker.list=share_wrk worker.share_wrk.port=8009 worker.share_wrk.host=share.domain.com worker.share_wrk.type=ajp13 worker.share_wrk.lbfactor=1 Tomcat host: Host name=share.tessel.pl debug=0 appBase=/var/lib/tomcat5/ShareApp unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path= docBase=/var/lib/tomcat5/ShareApp/share/ Aliasshare.domain.com/Alias /Host - VirtualHost *:80 ServerName alfresco.domain.com DocumentRoot /var/lib/tomcat5/webapps/alfresco Alias /alfresco /var/lib/tomcat5/webapps/alfresco/ JkMount /alfresco/* alfresco_wrk Options FollowSymLinks /VirtualHost Worker file: worker.list=alfresco_wrk worker.alfresco_wrk.port=8009 worker.alfresco_wrk.host=localhost worker.alfresco_wrk.type=ajp13 worker.alfresco_wrk.lbfactor=1 Tomcat Host Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path= docBase=/var/lib/tomcat5/webapps/ Aliasalfresco.domain.com/Alias /Host - Problem description: Share site has dedicated host in Tomcat and is linked to dedicated host in Apache - it works perfectly. By typing address like share.domain.com I get the proper index document processed by Tomcat (from the root of the app: /index.jsp) Alfresco site on the other hand is located in the Tomcat Localhost subdirectory /alfresco (webapps/alfresco/index.jsp) When I use this config: JkMount /* alfresco_wrk I can access this site by typing alfresco.domain.com/alfresco but that is not what I need :( (I want direct access without /alfresco) So when I change config to point directly into alfresco root: JkMount /alfresco/* alfresco_wrk And navigate to alfresco.domain.com I get unprocessed JSP file (displayed as text) so it looks like it was not passed to Tomcat? (But I ended in a proper place, because index.html is displayed properly by Apache itself) I can’t move alfresco to separate site as I need acees to it locally via localhost:8080/alfresco address. I would greatly appretiate any suggestions! Thank you! Best regards, Mike - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Getting an error with the Tomcat Manager on version 6.0.14.
From: Razvan Poenaru [mailto:razvan.poen...@mdacorporation.com] Subject: Getting an error with the Tomcat Manager on version 6.0.14. I am getting the following error when trying to access the Tomcat Manager on Tomcat 6.0.14: Access it how? root cause java.lang.SecurityException: Servlet of class org.apache.catalina.manager.HTMLManagerServlet is privileged and cannot be loaded by this web application Looks like you may have lost the privileged=true attribute in the manager's Context element. Look in [appBase]/manager/META-INF/context.xml and see what it says. Also check if there's a conf/Catalina/[host]/manager.xml that might be overriding the one packaged with the webapp. Any reason you can't move up to a newer version? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
RE: mod_jk problem related to multiple hosts on Apache and Tomcat
From: Maciej Zabielski [mailto:m...@tessel.pl] Subject: mod_jk problem related to multiple hosts on Apache and Tomcat Tomcat Host Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path= docBase=/var/lib/tomcat5/webapps/ Aliasalfresco.domain.com/Alias /Host I can't advise you about the httpd-related stuff, but the above is clearly wrong. The docBase attribute of a Context must not be the same as the Host appBase; docBase should point to some directory or .war file directly *underneath* the appBase directory. (Your other Host element is correct.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: java.lang.OutOfMemoryError: Java heap space
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, On 10/6/2009 3:44 PM, Joe Hansen wrote: I did not check the CPU usage when the issue happened. I just checked the web application logs and found that first there was an OutOfMemoryError, followed by MySQL errors when TWFotoSetListDAO.getAllFotosets tried to get a database connection. It's possible that, if you really are grabbing photos (like, actual images) from a database and fitting them into memory, you might just be busting your heap yourself (rather than CAS, etc.). Are there large objects that you store in memory and/or sessions? I am *guessing* : I changed the session timeout to 4 hours for the Jasig CAS Single-Signon web application. This stores a ton of tickets in memory. During a 4 hour period when there are more http requests, the 512MB of Java Heap space is not sufficient to store all these tickets. During that time OutOfMemoryError happens and all hell breaks loose subsequently. Wow, those tickets seem very heavyweight. Try this when the server is quiet and then, later, when it's getting stormed: $ jmap -histo [jvm pid] heap.log Then, go into the heap log and see what's taking up so much of your memory. For instance, if I run this against my own JVM running in development, here are the top 10 objects in memory: SizeCount Class description - --- 1078520098394 char[] 5548488 40283 * ConstMethodKlass 2911352 7238byte[] 2465208 102717 java.lang.String 2259496 40283 * MethodKlass 2212736 54518 * SymbolKlass 2171032 3767* ConstantPoolKlass 1912032 7936int[] 1761184 38585 java.lang.Object[] 1500112 3767* InstanceKlassKlass These are the objects taking up most memory. If you look at the count column, you can see how many of the objects are in memory. I suggest looking at both the size and the count columns, because your understanding of the size of an object and the JVM's notion may differ: most heap space is taken up by byte and char arrays and things like that, but then encapsulated into larger objects that, themselves, take up very little space. You may find that you have thousands of CAS tickets in memory and that they are very heavy. You may also find that the tickets themselves aren't the problem, but that a 4-hour session timeout leads to sessions with huge amounts of cached information in them. It's possible that your webapp is simply being careless with memory if you want a 4-hour session timeout. You might want to invest in a real memory profiler to see what is happening. These products can give you a better picture of large objects that you can look at to make decisions as to where you will apply your efforts. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrM2wYACgkQ9CaO5/Lv0PCjTwCfS/bwZmXLT+BUgYxJVyqIv6tT AuYAn1Jupcl6eB240BHH3pvtKJNGTglq =XDLj -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: JNI problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohamedin, On 10/7/2009 10:40 AM, Mohamedin wrote: Dear all, I am trying to use a JNI library written by me that uses GraphicsMagick wand. It is working fine as a stand alone java application but when I tried to use it in tomcat it give me this error and tomcat crashed. Technically speaking, the JVM has crashed, not Tomcat. I am running on: AMD64 Tomcat 6.0.20 CATALINA_OPTS = -server -Xms512m -Xmx2048m -Djava.library.path=/usr/lib/apache-tomcat-6.0.20/shared/lib/:/usr/local/lib/ Please help *** glibc detected *** /usr/bin/java: malloc(): memory corruption: 0x7f5614455720 *** === Backtrace: = /lib/libc.so.6[0x7f56b0cc7948] /lib/libc.so.6[0x7f56b0cca17c] /lib/libc.so.6(__libc_malloc+0x98)[0x7f56b0ccba78] /usr/lib/apache-tomcat-6.0.20/shared/lib/libPhotoOperations.so(NewMagickWand+0x13)[0x7f561b7068de] /usr/lib/apache-tomcat-6.0.20/shared/lib/libPhotoOperations.so(reduce_quality_to+0x26)[0x7f561b6f71f6] /usr/lib/apache-tomcat-6.0.20/shared/lib/libPhotoOperations.so(reduce_quality+0x88)[0x7f561b6f74e8] /usr/lib/apache-tomcat-6.0.20/shared/lib/libPhotoOperations.so(Java_com_vehicle_netapp_backend_objects_photo_PhotoOperations_reduceQuality+0x68)[0x7f561b6f7688] [0x7f56a95ca542] Since your code is definitely involved, here (the stack trace above shows 4 layers of your code before glibc is involved), I suspect your code is to blame for this problem. Tomcat does not use any native code directly (except for tcnative if you are using that). Are you using tcnative? If so, disable it and re-try to convince yourself that this is not a Tomcat problem. I'm not saying it is definitely /not/ a Tomcat problem, but chances are that it's your code at fault. My experience with native code from Java is that when memory corruption is found in one instance but not another and the code is the same, then there is probably some bug in your code that is sensitive to re-location of your code within memory. That is, you are making assumptions about your environment that are not valid when running from within a JVM (or they work sometimes, but not other times because more code gets loaded when running under an app server). How much of your JNI code are you willing to post? Typically, one develops a native library that has nothing to do with Java, and then writes a Java wrapper around that code which is little more than the plumbing necessary to convert data between Java-style objects, arrays, etc. and C-style data structures. Have you done that? If so, go ahead and post the JNI-specific layer. If not, I think you're playing with fire by writing a native library that does a great deal of Java interaction. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrM4EcACgkQ9CaO5/Lv0PBregCgumcWoLGOm+fOjvV4S79ZHt1P y10AoKqWpMNgMMYKKubd9H+jQPKjIHS2 =rfQZ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: mod_jk problem related to multiple hosts on Apache and Tomcat
What Chuck means is that you need docBase=/var/lib/tomcat5/webapps/alfresco On Wed, Oct 7, 2009 at 8:51 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Maciej Zabielski [mailto:m...@tessel.pl] Subject: mod_jk problem related to multiple hosts on Apache and Tomcat Tomcat Host Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path= docBase=/var/lib/tomcat5/webapps/ Aliasalfresco.domain.com/Alias /Host I can't advise you about the httpd-related stuff, but the above is clearly wrong. The docBase attribute of a Context must not be the same as the Host appBase; docBase should point to some directory or .war file directly *underneath* the appBase directory. (Your other Host element is correct.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Getting an error with the Tomcat Manager on version 6.0.14.
Hi Chuck, Thanks a lot for the answer. This is the manager.xml file I have in \webapps\manager directory: !-- Context configuration file for the Tomcat Manager Web App $Id: manager.xml 303123 2004-08-26 17:03:35Z remm $ -- Context docBase=${catalina.home}/server/webapps/manager privileged=true antiResourceLocking=false antiJARLocking=false !-- Link to the user database we will get roles from -- ResourceLink name=users global=UserDatabase type=org.apache.catalina.UserDatabase/ /Context I do not have any contex.xml file in \webapps\manager\MET-INF I am new to Tomcat. We can not upgrade due to SOX requirements. Lots of Testing involved. Regards, Razvan Poenaru |Sr.Programmer/Analyst |Space Missions -MDA (905) 790 2800 x4626|razvan.poen...@mdacorporation.com|www.mdacorporation.com Canada – 9445 Airport Road, Brampton, ON – L6S 4J3 Caldarale, Charles R chuck.caldar...@unisys.com 10/7/2009 1:44 PM From: Razvan Poenaru [mailto:razvan.poen...@mdacorporation.com] Subject: Getting an error with the Tomcat Manager on version 6.0.14. I am getting the following error when trying to access the Tomcat Manager on Tomcat 6.0.14: Access it how? root cause java.lang.SecurityException: Servlet of class org.apache.catalina.manager.HTMLManagerServlet is privileged and cannot be loaded by this web application Looks like you may have lost the privileged=true attribute in the manager's Context element. Look in [appBase]/manager/META-INF/context.xml and see what it says. Also check if there's a conf/Catalina/[host]/manager.xml that might be overriding the one packaged with the webapp. Any reason you can't move up to a newer version? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
RE: Getting an error with the Tomcat Manager on version6.0.14.
From: Razvan Poenaru [mailto:razvan.poen...@mdacorporation.com] Subject: RE: Getting an error with the Tomcat Manager on version6.0.14. This is the manager.xml file I have in \webapps\manager directory: Context docBase=${catalina.home}/server/webapps/manager privileged=true antiResourceLocking=false antiJARLocking=false The above appears to have been left over from a version of Tomcat prior to 6.0.x; the docBase attribute is incorrect (and shouldn't actually be there at all); there is no ${catalina.home}/server directory on Tomcat 6. The above file does not exist on a current Tomcat download. !-- Link to the user database we will get roles from -- ResourceLink name=users global=UserDatabase type=org.apache.catalina.UserDatabase/ /Context I don't think the above ResourceLink is of much use. I do not have any contex.xml file in \webapps\manager\MET-INF There should be one - it's part of the standard Tomcat download, so someone has removed it. The proper one looks like this: Context antiResourceLocking=false privileged=true / and is located in ${catalina.home}/webapps/manager/META-INF/context.xml. You might want to download a copy of 6.0.14 from the archives and compare it with what you have; looks like someone has improperly mucked around with the structure. http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.14/bin/ - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
RE: Getting an error with the Tomcat Manager on version6.0.14.
Hi Chuck, I downloaded the 6.0.14 version, installed it on an other machine and copy the wrong or missing files to the bad installation. It is working now. Thanks a lot for help. Regards, Razvan Poenaru |Sr.Programmer/Analyst |Space Missions -MDA (905) 790 2800 x4626|razvan.poen...@mdacorporation.com|www.mdacorporation.com Canada – 9445 Airport Road, Brampton, ON – L6S 4J3 Caldarale, Charles R chuck.caldar...@unisys.com 10/7/2009 3:05 PM From: Razvan Poenaru [mailto:razvan.poen...@mdacorporation.com] Subject: RE: Getting an error with the Tomcat Manager on version6.0.14. This is the manager.xml file I have in \webapps\manager directory: Context docBase=${catalina.home}/server/webapps/manager privileged=true antiResourceLocking=false antiJARLocking=false The above appears to have been left over from a version of Tomcat prior to 6.0.x; the docBase attribute is incorrect (and shouldn't actually be there at all); there is no ${catalina.home}/server directory on Tomcat 6. The above file does not exist on a current Tomcat download. !-- Link to the user database we will get roles from -- ResourceLink name=users global=UserDatabase type=org.apache.catalina.UserDatabase/ /Context I don't think the above ResourceLink is of much use. I do not have any contex.xml file in \webapps\manager\MET-INF There should be one - it's part of the standard Tomcat download, so someone has removed it. The proper one looks like this: Context antiResourceLocking=false privileged=true / and is located in ${catalina.home}/webapps/manager/META-INF/context.xml. You might want to download a copy of 6.0.14 from the archives and compare it with what you have; looks like someone has improperly mucked around with the structure. http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.14/bin/ - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
Re: mod_jk problem related to multiple hosts on Apache and Tomcat
On 07.10.2009 19:40, Maciej Zabielski wrote: Hello, I have a mod_jk problem related to multiple hosts on Apache and Tomcat My setup is Centos 5.3 + Apache HTTPD 2.2.3 + Tomcat 5 httpd.conf contains (Just before section 3) Basic mod_jk directives. At the end it contains two virtual hosts: (all sections are placed in proper files, but I have grouped them to make it easier to read) VirtualHost *:80 ServerName share.domain.com DocumentRoot /var/lib/tomcat5/ShareApp/share/ Alias / /var/lib/tomcat5/ShareApp/share JkMount /* share_wrk Options FollowSymLinks /VirtualHost Worker file defined: worker.list=share_wrk worker.share_wrk.port=8009 worker.share_wrk.host=share.domain.com worker.share_wrk.type=ajp13 worker.share_wrk.lbfactor=1 Tomcat host: Host name=share.tessel.pl debug=0 appBase=/var/lib/tomcat5/ShareApp unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path= docBase=/var/lib/tomcat5/ShareApp/share/ Aliasshare.domain.com/Alias /Host - VirtualHost *:80 ServerName alfresco.domain.com DocumentRoot /var/lib/tomcat5/webapps/alfresco Alias /alfresco /var/lib/tomcat5/webapps/alfresco/ JkMount /alfresco/* alfresco_wrk Options FollowSymLinks /VirtualHost Worker file: worker.list=alfresco_wrk worker.alfresco_wrk.port=8009 worker.alfresco_wrk.host=localhost worker.alfresco_wrk.type=ajp13 worker.alfresco_wrk.lbfactor=1 Tomcat Host Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path= docBase=/var/lib/tomcat5/webapps/ Aliasalfresco.domain.com/Alias /Host - Problem description: Share site has dedicated host in Tomcat and is linked to dedicated host in Apache - it works perfectly. By typing address like share.domain.com I get the proper index document processed by Tomcat (from the root of the app: /index.jsp) Alfresco site on the other hand is located in the Tomcat Localhost subdirectory /alfresco (webapps/alfresco/index.jsp) When I use this config: JkMount /* alfresco_wrk I can access this site by typing alfresco.domain.com/alfresco but that is not what I need :( (I want direct access without /alfresco) So when I change config to point directly into alfresco root: JkMount /alfresco/* alfresco_wrk And navigate to alfresco.domain.com I get unprocessed JSP file (displayed as text) so it looks like it was not passed to Tomcat? (But I ended in a proper place, because index.html is displayed properly by Apache itself) I can’t move alfresco to separate site as I need acees to it locally via localhost:8080/alfresco address. I would greatly appretiate any suggestions! Thank you! You might want to have a look at: http://tomcat.apache.org/connectors-doc/generic_howto/proxy.html Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: mod_jk problem related to multiple hosts on Apache and Tomcat
Thank you both for your support! You are absolutely right. My thinking (rather unexperienced, because this is my first month with linux / tomcat) was that by setting: docBase=/var/lib/tomcat5/webapps/alfresco alfresco would become root of localhost (as it actually does?) and therefore would be not accessible via http://localhost:8080/alfresco (but it still is!) As I have said, this address is needed for Share site as changing endpoints does not always work I beleive this solves my problem for now - I will have to do some test tomorrow, but looks promising! What I still don't know, how to achieve that sort of functionality for many hosts using only localhost. Example: a_domain.com - localhost:8080/app1 b_domain.com - localhost:8080/app2 As opposed to the solution that I have now: a_domain.com - localhost:8080/app1 b_domain.com - host2:8080/app2 Well, I would have to think it over tommorow as its almost midnight in country! :) Once more, thank you very much for pointing out my mistake! ___ From: Tsirkin Evgeny [tsir...@gmail.com] Sent: Wednesday, October 07, 2009 8:50 PM To: Tomcat Users List Subject: Re: mod_jk problem related to multiple hosts on Apache and Tomcat What Chuck means is that you need docBase=/var/lib/tomcat5/webapps/alfresco On Wed, Oct 7, 2009 at 8:51 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Maciej Zabielski [mailto:m...@tessel.pl] Subject: mod_jk problem related to multiple hosts on Apache and Tomcat Tomcat Host Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path= docBase=/var/lib/tomcat5/webapps/ Aliasalfresco.domain.com/Alias /Host I can't advise you about the httpd-related stuff, but the above is clearly wrong. The docBase attribute of a Context must not be the same as the Host appBase; docBase should point to some directory or .war file directly *underneath* the appBase directory. (Your other Host element is correct.) - Chuck - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Repsonse question...
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, On 10/6/2009 1:32 PM, Tony Anecito wrote: I am running JBoss and Apache on the same box so not sure if the TCP/IP stack is bypassed in that case. It's not bypassed, but it skips a lot of steps and does sneaky things like sharing send and receive buffers to dramatically reduce the overhead when communicating with localhost (at least, decent *NIX TCP/IP stacks do this... not sure about any others). What I am trying to do is find out where my bottlenecks are. Tomcat itself is unlikely to be a bottleneck, except where Connectors are concerned. There are several reasons why the connector/threads could be a problem for you: 1. Your webapp is not responding quickly enough, resulting in a pileup of requests. This is obviously not really Tomcat's fault. 2. You have lots of keepalive requests, and the client takes a long time to send secondary requests. In this case, consider using the NIO connector which doesn't allocate a request processing thread until a request has actually been made. 3. You don't have enough request processing threads configured, and you are simply experiencing more traffic than you expected. In this case, your webapp is performing as expected (i.e. well) but you aren't getting the throughput you expect because you are simply limited by your available thread count. If you could explain what you are observing, we might be able to steer you toward a particular course of action. In my code I instrument the response time for my web service and I am below 1msec and if visualvm is right more like 20microseconds response time for the method exposed for my web service. That sounds reasonable, especially if you aren't hitting a database or you already have some data cached. At my Thick client over the lan I am seeing 3-5msec response time using JBoss 4.2.2. So, instrumenting the client gives you 3-5msec for an observed overhead of 2-4msec? Are you using SSL or anything like that? Still localhost? So trying to go from tier to tier to see how fast the tiers are and if there is anything else I can tune. I just updated to JBoss 5.1.0 and am seeing 1msec slower or 4-5msec but have not tuned it yet except for jvm settings. Hmm... I am using ajp for the connector. I plan to upgrade my Apache web server soon to the latest version hoping for performance improvement for the ajp connector. If performance is what you're after, ditch httpd and go straight to Tomcat. Do you have a requirement to use httpd our front? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrNBKgACgkQ9CaO5/Lv0PDfgwCgvgKOLHRAl5+JpS7+aqsFytJN C+gAnRRnxwliEkVBzYy73l7gpvT3+V0z =axGy -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat hangs for minutes between ContextConfig and StandardContext (Starting the app)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer, On 10/6/2009 2:00 PM, Rainer Jung wrote: On 06.10.2009 17:41, Christopher Schultz wrote: Another possibility is that SecureRandom is taking forever to initialize: if your JVM is configured to use a blocking source of entropy, that may be the problem. This often happens in *NIX environments, but it appears that you are running on Microsoft Windows, so that's unlikely to be the problem. ... and should only be a problem if SSL is involved. Doesn't Tomcat use SecureRandom for session id generation, at least under certain configurations? This would trip over a blocking entropy source regardless of SSL configuration, right? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrNBQMACgkQ9CaO5/Lv0PC5igCgjVbDsu74+cKSGW4geTCezF9r fE0An2X4LgJg8/jpkSV+Vgn+yjqdTpF/ =+3Ms -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat training at ApacheCon
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 10/6/2009 4:38 PM, Martin Gainty wrote: bit of a stretch for folks on the east coast or midwest Er... it's a conference, not a traveling carnival. If you want to see the presentations, attend the conference (or hope the presenters are kind enough to publish their presentations online). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrNBhcACgkQ9CaO5/Lv0PBojgCgn8WhXaj6FB0xNMWMc9pAkcLe 610An0OtDxlUFxAnMVxjg4kdW6h1IHHh =C1rj -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: ssl_error_internal_error_alert in firefox only, dependent on jdk version (tomcat 5.5.26)
Thanks for your continuing endeavors to help me, Chris. I'm pointing tomcat to a safe keystore file, not the system keystore or any particular keystore. So, I don't have to worry about the keystore getting overwritten when I upgrade. Also, just by changing JAVA_HOME, I can start up tomcat with Java 1.5 and watch everything work, then shut it down and start it up in 1.6 and see this niggling issue in Firefox. I also tried, btw, regenerating the keystore from the private key and the certificate using the 1.6 version keytool. This new keystore works with 1.5 java but has the same problem with Firefox when I start up Tomcat with Java 1.6. shrug Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nada, On 10/6/2009 4:51 PM, Nada O'Neal wrote: I don't have an EV cert, it's just a standard cert signed by Equifax. I have similar certs working on other servers. Again, it's the upgrade from one java to another that seems to cause the problem - running java 1.5, I don't have this issue. If you've recently upgraded, then any changes you made to the system keystore may have been lost (which I think is a foolish thing to do, but it looks like each version of the JRE gets its own keystore, and upgrades don't merge or anything like that). $ keytool -list -keystore /path/to/keystore Enter keystore password: Keystore type: JKS Keystore provider: SUN Your keystore contains 2 entries root, Sep 29, 2009, trustedCertEntry, Certificate fingerprint (MD5): [...] tomcat, Sep 29, 2009, PrivateKeyEntry, Certificate fingerprint (MD5): [...] ... is this wrong? I'm not sure. That depends on if this is /your/ keystore or the JRE's keystore. It also depends on what the details of those certs are: do any of them have to do with Equifax? All you really need is: 1. Equifax CA cert in your keystore 2. Any Equifax intermediate certificates in your keystore 3. Your own certificate in your keystore 4. The web browser has to trust either #1 or #2 I'm not altogether clear if it all has to be the same keystore: I think that the JCE reads the system one no matter what, which should include anything Equifax has at the top-level. You may have to import their intermediate cert into your own keystore (or into the system one, again, if you upgraded). There's nothing you can do about #4 above, except that if the browser trusts, say, #1, but you aren't providing the certificate chain between #3 and #1 (via #2), then you'll get this error from the client. I hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrMyjcACgkQ9CaO5/Lv0PAlpQCgsBd2nlqqEwa4fqMKaJlf0YAi ELwAn2+cUWZVBqJOSOKAfm8i81qLucQu =augc -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat hangs for minutes between ContextConfig and StandardContext (Starting the app)
I appreciate your responses, but I'm afraid I don't know what a blocking entropy is. Also, I don't appear to have any issues in resolving or referencing DTDs during building. I had posted another email indicating some more behavior, basically that the delay occurs only when a new WAR file is deployed. If the WAR file doesn't change, I can re-deploy it without any delays. In addition, I grabbed some thread dumps during the delay. But I don't know enough to know what to look for. I compared two of the thread dumps taken one-minute apart. The only two differences in the files are the timestamp at the top and the JNI global references count at the bottom (the earlier dump showed 921, the later, 959). Here is the earlier thread dump. Again, any help is greatly appreciated: ---8--- -- 2009-10-06 19:44:47 Full thread dump Java HotSpot(TM) Client VM (11.2-b01 mixed mode, sharing): Low Memory Detector daemon prio=6 tid=0x02c41800 nid=0xae0 runnable [0x..0x] java.lang.Thread.State: RUNNABLE Locked ownable synchronizers: - None CompilerThread0 daemon prio=10 tid=0x02c3bc00 nid=0x490 waiting on condition [0x..0x02eef9bc] java.lang.Thread.State: RUNNABLE Locked ownable synchronizers: - None Attach Listener daemon prio=10 tid=0x02c3a400 nid=0xd2c waiting on condition [0x..0x] java.lang.Thread.State: RUNNABLE Locked ownable synchronizers: - None Signal Dispatcher daemon prio=10 tid=0x02c39000 nid=0xc18 runnable [0x..0x] java.lang.Thread.State: RUNNABLE Locked ownable synchronizers: - None Finalizer daemon prio=8 tid=0x02c30c00 nid=0x99c in Object.wait() [0x02dff000..0x02dffa94] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x088f0288 (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116) - locked 0x088f0288 (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159) Locked ownable synchronizers: - None Reference Handler daemon prio=10 tid=0x02c2f800 nid=0x9ec in Object.wait() [0x02daf000..0x02dafb14] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on 0x088f0310 (a java.lang.ref.Reference$Lock) at java.lang.Object.wait(Object.java:485) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116) - locked 0x088f0310 (a java.lang.ref.Reference$Lock) Locked ownable synchronizers: - None main prio=6 tid=0x002a7000 nid=0xd5c runnable [0x0090f000..0x0090fe54] java.lang.Thread.State: RUNNABLE at java.io.FileOutputStream.close0(Native Method) at java.io.FileOutputStream.close(FileOutputStream.java:279) at java.io.FilterOutputStream.close(FilterOutputStream.java:143) at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:324) at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:158) at org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java: 883) at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:1012) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j ava:279) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:117) at org.apache.catalina.core.StandardContext.init(StandardContext.java:5338) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4086 ) - locked 0x088f0710 (a org.apache.catalina.core.StandardContext) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja va:791) - locked 0x088f08a0 (a java.util.HashMap) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31 1) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) - locked 0x088f0500 (a org.apache.catalina.core.StandardHost) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) - locked 0x088f0500 (a
RE: Tomcat hangs for minutes between ContextConfig and StandardContext (Starting the app)
From: Law, Christopher [mailto:chris@snapon.com] Subject: RE: Tomcat hangs for minutes between ContextConfig and StandardContext (Starting the app) I'm afraid I don't know what a blocking entropy is. /dev/random is the system-provided random byte stream for UNIX/Linux and some other platforms. In order to generate a reasonably random sequence, it needs sources of randomness, such as keyboard interrupts, mouse movements, radioactive decay; than randomness is termed entropy, and until there's enough of it, the stream will block when requests are made to it. main prio=6 tid=0x002a7000 nid=0xd5c runnable [0x0090f000..0x0090fe54] java.lang.Thread.State: RUNNABLE at java.io.FileOutputStream.close0(Native Method) at java.io.FileOutputStream.close(FileOutputStream.java:279) at java.io.FilterOutputStream.close(FilterOutputStream.java:143) The above is the interesting one: it's stuck in close(), waiting for something in the underlying file system. Since you're on Windows, you may need to set the antiJARLocking and antiResourceLocking attributes in the Context element for your webapp. http://tomcat.apache.org/tomcat-6.0-doc/config/context.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: ssl_error_internal_error_alert in firefox only, dependent on jdk version (tomcat 5.5.26)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nada, On 10/7/2009 5:28 PM, Nada O'Neal wrote: I'm pointing tomcat to a safe keystore file, not the system keystore or any particular keystore. So, I don't have to worry about the keystore getting overwritten when I upgrade. Also, just by changing JAVA_HOME, I can start up tomcat with Java 1.5 and watch everything work, then shut it down and start it up in 1.6 and see this niggling issue in Firefox. Okay, I would do a verbose dump of both system keystores and look for the Equifax entries for each. Perhaps there's a missing Equifax cert in the 1.6 keystore that you just have to import. I would import this certificate into your safe keystore if and when you identify which one it is. You could also try contacting Equifax's SSL technical support. They might have some suggestions. Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrNExEACgkQ9CaO5/Lv0PDfLACgvptekFrv1bOCUkW8QX4cB7XJ K58AoK/5hpKblPVxPZBSF0YpsFl7vZsZ =VWDe -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat hangs for minutes between ContextConfig and StandardContext (Starting the app)
Thanks, Chuck, I'll take a look into this. Appreciate it. Chris -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Wednesday, October 07, 2009 5:46 PM To: Tomcat Users List Subject: RE: Tomcat hangs for minutes between ContextConfig and StandardContext (Starting the app) From: Law, Christopher [mailto:chris@snapon.com] Subject: RE: Tomcat hangs for minutes between ContextConfig and StandardContext (Starting the app) I'm afraid I don't know what a blocking entropy is. /dev/random is the system-provided random byte stream for UNIX/Linux and some other platforms. In order to generate a reasonably random sequence, it needs sources of randomness, such as keyboard interrupts, mouse movements, radioactive decay; than randomness is termed entropy, and until there's enough of it, the stream will block when requests are made to it. main prio=6 tid=0x002a7000 nid=0xd5c runnable [0x0090f000..0x0090fe54] java.lang.Thread.State: RUNNABLE at java.io.FileOutputStream.close0(Native Method) at java.io.FileOutputStream.close(FileOutputStream.java:279) at java.io.FilterOutputStream.close(FilterOutputStream.java:143) The above is the interesting one: it's stuck in close(), waiting for something in the underlying file system. Since you're on Windows, you may need to set the antiJARLocking and antiResourceLocking attributes in the Context element for your webapp. http://tomcat.apache.org/tomcat-6.0-doc/config/context.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat training at ApacheCon
the springsource folks provide occasional presentations and lectures here in the east ..then again if they publish on youtube we could all see it.. Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Wed, 7 Oct 2009 17:20:23 -0400 From: ch...@christopherschultz.net To: users@tomcat.apache.org Subject: Re: Tomcat training at ApacheCon -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 10/6/2009 4:38 PM, Martin Gainty wrote: bit of a stretch for folks on the east coast or midwest Er... it's a conference, not a traveling carnival. If you want to see the presentations, attend the conference (or hope the presenters are kind enough to publish their presentations online). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrNBhcACgkQ9CaO5/Lv0PBojgCgn8WhXaj6FB0xNMWMc9pAkcLe 610An0OtDxlUFxAnMVxjg4kdW6h1IHHh =C1rj -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Hotmail: Free, trusted and rich email service. http://clk.atdmt.com/GBL/go/171222984/direct/01/
Re: mod_jk problem related to multiple hosts on Apache and Tomcat
One real question is why you are bothering with an Apache httpd in front, since unless I saw this wrong, you are proxying absolutely everything to Tomcat, in both virtual hosts. JkMount /* etc.. Why not just turn off Apache, and have Tomcat listen on port 80 ? You would save yourself some complication and some overhead. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Repsonse question...
Thanks Christopher for the reply, I am using Apache Web server for the front end to serve my html requests. I have thought about using JBoss with it's Tomcat as the front end Apache as the back end for handling ordinary http requests but have not found anyone who has done that. This is so I use the standard port 80 for requests over the internet. I think I narrowed down most of the time to calls by web start on the client side for permissions check for every request. I left a forum message on java.net about it and hope to get an answer. Web start does do keep-alive requests I believe so maybe that is something to consider. My goal is to see if I can get response times over the lan under 1msec using standard cheap hardware and open source software. I am close to my 1msec goal (measured at the client) and know if I upgrade my old AMD64 5200+ I use for my server to say a Phenom II quad say a 955 I might be able to pull it off. So right now by tier. Client PC: 4-5msec measured after message received from JAX-WS proxy in code. Apache: logs 0 microsecond (running on windows so suspect 15msec accuracy from timers even though microsecond resolution expected in Apache logs) Tomcat: 20 microseconds response time measured at web service method called by client. I am using cache at this tier. For those results client/Apache/Tomcat(Jboss) are on same physical PC. If I try from another client on lan I get the same response time at the client. Thus routers/switches (1Gbps) are not noticable from response time perspective right now. I hope this helps answer your question. Best Regards, -Tony --- On Wed, 10/7/09, Christopher Schultz ch...@christopherschultz.net wrote: From: Christopher Schultz ch...@christopherschultz.net Subject: Re: Tomcat Repsonse question... To: Tomcat Users List users@tomcat.apache.org Date: Wednesday, October 7, 2009, 3:14 PM -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, On 10/6/2009 1:32 PM, Tony Anecito wrote: I am running JBoss and Apache on the same box so not sure if the TCP/IP stack is bypassed in that case. It's not bypassed, but it skips a lot of steps and does sneaky things like sharing send and receive buffers to dramatically reduce the overhead when communicating with localhost (at least, decent *NIX TCP/IP stacks do this... not sure about any others). What I am trying to do is find out where my bottlenecks are. Tomcat itself is unlikely to be a bottleneck, except where Connectors are concerned. There are several reasons why the connector/threads could be a problem for you: 1. Your webapp is not responding quickly enough, resulting in a pileup of requests. This is obviously not really Tomcat's fault. 2. You have lots of keepalive requests, and the client takes a long time to send secondary requests. In this case, consider using the NIO connector which doesn't allocate a request processing thread until a request has actually been made. 3. You don't have enough request processing threads configured, and you are simply experiencing more traffic than you expected. In this case, your webapp is performing as expected (i.e. well) but you aren't getting the throughput you expect because you are simply limited by your available thread count. If you could explain what you are observing, we might be able to steer you toward a particular course of action. In my code I instrument the response time for my web service and I am below 1msec and if visualvm is right more like 20microseconds response time for the method exposed for my web service. That sounds reasonable, especially if you aren't hitting a database or you already have some data cached. At my Thick client over the lan I am seeing 3-5msec response time using JBoss 4.2.2. So, instrumenting the client gives you 3-5msec for an observed overhead of 2-4msec? Are you using SSL or anything like that? Still localhost? So trying to go from tier to tier to see how fast the tiers are and if there is anything else I can tune. I just updated to JBoss 5.1.0 and am seeing 1msec slower or 4-5msec but have not tuned it yet except for jvm settings. Hmm... I am using ajp for the connector. I plan to upgrade my Apache web server soon to the latest version hoping for performance improvement for the ajp connector. If performance is what you're after, ditch httpd and go straight to Tomcat. Do you have a requirement to use httpd our front? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrNBKgACgkQ9CaO5/Lv0PDfgwCgvgKOLHRAl5+JpS7+aqsFytJN C+gAnRRnxwliEkVBzYy73l7gpvT3+V0z =axGy -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail:
Re: JNI problem
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohamedin, On 10/7/2009 10:40 AM, Mohamedin wrote: Dear all, I am trying to use a JNI library written by me that uses GraphicsMagick wand. It is working fine as a stand alone java application but when I tried to use it in tomcat it give me this error and tomcat crashed. Considering the above, might it simply be not thread-safe ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: java.lang.OutOfMemoryError: Java heap space
WoW! jmap was a great command to learn Chris! Thank you so much! I generated a histogram of the Objects in the java heap (while things were stable) and here's what I got: Object Histogram: SizeCount Class description --- 149989048 3496198 char[] 847084323529518 java.lang.String 58308016560654 tw.beans.TWFotoBean 35620304179282 byte[] 2328687230767 int[] 18220184142094 * ConstMethodKlass 14932056622169 java.sql.Date 10235120142094 * MethodKlass 1016478490757 tw.beans.TWFotoSetBean 8878248 134561 java.lang.Object[] 7949144 16190 * ConstantPoolKlass 6147768 16190 * InstanceKlassKlass 4590176 13997 * ConstantPoolCacheKlass ... ... As you've pointed out, most of the data is taken by character arrays, Strings, integer arrays, byte arrays, Foto and FotoSet beans! There were just 67 Ticket entries (related to CAS) and the size of the Ticket objects wasn't huge either. Seeing the histogram results was an eye opener. I am wondering if Rainer was right all along. Is it just the application data (FotoBean and FotoSetBean) that's inundating the java heap? I had changed the session-timeout in server.xml from 30 minutes to 240 minutes. That means an HTTP Session would now last 8 times longer. Since the Garbage Collector runs only when the session expires, the application's memory needs are probably increased 8 fold (Am I right?). And I am storing the FotoBeans and FotoSetBeans in each user's HTTP Session. As I mentioned before, previously the java heap was set to the default, 64MB, and it used to be sufficient. From the time I changed the session-timeout, even 512MB (= 64 X 8) is insufficient. Should I just decrease the session-timeout to 2 hours and see if 512MB is sufficient? Any other thoughts/ideas guys? Thanks again Chris, Joe Here are all the Ticket entries in the heap: 96 4 org.jasig.cas.util.DefaultUniqueTicketIdGenerator 72 3 org.jasig.cas.util.DefaultUniqueTicketIdGenerator 72 3 org.jasig.cas.util.DefaultUniqueTicketIdGenerator 72 3 org.jasig.cas.util.DefaultUniqueTicketIdGenerator 72 3 org.jasig.cas.util.DefaultUniqueTicketIdGenerator 72 3 org.jasig.cas.util.DefaultUniqueTicketIdGenerator 24 1 org.jasig.cas.web.flow.SendTicketGrantingTicketAction 24 1 org.jasig.cas.web.flow.SendTicketGrantingTicketAction 24 1 org.jasig.cas.web.flow.SendTicketGrantingTicketAction 24 1 org.jasig.cas.web.flow.SendTicketGrantingTicketAction 24 1 org.acegisecurity.providers.cas.ticketvalidator.CasProxyTicketValidator 24 1 org.acegisecurity.providers.cas.ticketvalidator.CasProxyTicketValidator 24 1 org.acegisecurity.providers.cas.ticketvalidator.CasProxyTicketValidator 24 1 org.acegisecurity.providers.cas.ticketvalidator.CasProxyTicketValidator 24 1 org.jasig.cas.web.flow.SendTicketGrantingTicketAction 24 1 org.acegisecurity.providers.cas.ticketvalidator.CasProxyTicketValidator 24 1 org.jasig.cas.web.flow.SendTicketGrantingTicketAction 24 1 org.acegisecurity.providers.cas.ticketvalidator.CasProxyTicketValidator 16 1 org.jasig.cas.util.SamlCompliantUniqueTicketIdGenerator 16 1 org.jasig.cas.ticket.registry.DefaultTicketRegistry 16 1 org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner 16 1 org.jasig.cas.util.SamlCompliantUniqueTicketIdGenerator 16 1 org.jasig.cas.ticket.registry.DefaultTicketRegistry 16 1 org.acegisecurity.providers.cas.proxy.RejectProxyTickets 16 1 org.jasig.cas.web.flow.GenerateServiceTicketAction 16 1 org.jasig.cas.ticket.registry.DefaultTicketRegistry 16 1 org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner 16 1 org.acegisecurity.providers.cas.proxy.RejectProxyTickets 16 1 org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner 16 1 org.jasig.cas.web.flow.GenerateServiceTicketAction 16 1 org.jasig.cas.util.SamlCompliantUniqueTicketIdGenerator 16 1 org.acegisecurity.providers.cas.cache.EhCacheBasedTicketCache 16 1 org.acegisecurity.providers.cas.cache.EhCacheBasedTicketCache 16 1 org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner 16 1 org.jasig.cas.util.SamlCompliantUniqueTicketIdGenerator 16 1 org.jasig.cas.web.flow.GenerateServiceTicketAction 16 1 org.acegisecurity.providers.cas.proxy.RejectProxyTickets 16 1 org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner 16 1 org.jasig.cas.web.flow.GenerateServiceTicketAction 16 1 org.acegisecurity.providers.cas.proxy.RejectProxyTickets 16 1 org.jasig.cas.ticket.registry.DefaultTicketRegistry 16
Re: JNI problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 10/7/2009 8:18 PM, Warnier wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohamedin, On 10/7/2009 10:40 AM, Mohamedin wrote: Dear all, I am trying to use a JNI library written by me that uses GraphicsMagick wand. It is working fine as a stand alone java application but when I tried to use it in tomcat it give me this error and tomcat crashed. Considering the above, might it simply be not thread-safe ? It's definitely possible, and likely probably. I'm guessing that GraphicsMagick itself /is/ threadsafe, so I wonder if the OP wrote a broken JNI bridge... which is why I was asking for the code. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrNPRoACgkQ9CaO5/Lv0PA4lQCeNG2A5pjt1ktj1O1FCM/Vs3+m cw0AoKXFVJdUcBdy5+cwm2tn6glV6hR5 =o8js -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat Repsonse question...
From: Tony Anecito [mailto:adanec...@yahoo.com] Subject: Re: Tomcat Repsonse question... I am using Apache Web server for the front end to serve my html requests. I have thought about using JBoss with it's Tomcat as the front end Apache as the back end for handling ordinary http requests but have not found anyone who has done that. This is so I use the standard port 80 for requests over the internet. Again, you can simply eliminate httpd, and let JBoss/Tomcat service the static html requests. Configure the HTTP Connector in JBoss/Tomcat to use port 80, and put your static content under Tomcat's appBase directory. That will eliminate some of the latency you're observing. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: java.lang.OutOfMemoryError: Java heap space
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, On 10/7/2009 8:40 PM, Joe Hansen wrote: WoW! jmap was a great command to learn Chris! Thank you so much! Yeah, it's great as a poor-man's memory profiler. On the other hand, I haven't seen a big-time memory profiler offer such a simple view of everything since Borland's OptimizeIt. As you've pointed out, most of the data is taken by character arrays, Strings, integer arrays, byte arrays, Foto and FotoSet beans! There were just 67 Ticket entries (related to CAS) and the size of the Ticket objects wasn't huge either. Yup, it looks like you have more of your application objects taking up memory than the tickets you were worried about. I had changed the session-timeout in server.xml from 30 minutes to 240 minutes. That means an HTTP Session would now last 8 times longer. Since the Garbage Collector runs only when the session expires, the application's memory needs are probably increased 8 fold (Am I right?). Er, the GC runs all the time, but the objects in the session are not cleaned-out until the session expires. You might want to consider cleaning your sessions a bit more regularly. You can couple session-object expiration with lazy instantiation/fetch for a solution that can keep your sessions lightweight yet allow insanely long session timeouts. It will require you to do some additional work, but improved stability is probably worth it. Should I just decrease the session-timeout to 2 hours and see if 512MB is sufficient? Any other thoughts/ideas guys? I think your session timeout should be dictated by your business requirements, not technical limitations (since this is a relatively low technical hurdle). Is it an absolute requirement that these objects be stored in the session at all? If so, then maybe the caching strategy can be tweaked a bit to allow both requirements to peacefully coexist. There are even techniques that will allow your session objects to expire when memory gets tight (which is super cool IMO). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrNQGUACgkQ9CaO5/Lv0PD1XwCePdhJbbdSakmn2x9uopHrN7Na 6R8AoMDfMpMioh/J2D+UfpJTUxFiHJ3G =avdi -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: java.lang.OutOfMemoryError: Java heap space
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: java.lang.OutOfMemoryError: Java heap space There are even techniques that will allow your session objects to expire when memory gets tight (which is super cool IMO). To put a name on the above technique, read up on using SoftReference objects to track entries in your cache(s). These will allow GC to discard objects not in immediate use when the heap is full. http://www.ibm.com/developerworks/java/library/j-jtp01246.html http://java.sun.com/javase/6/docs/api/java/lang/ref/SoftReference.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
Re: Tomcat Repsonse question...
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, On 10/7/2009 8:16 PM, Tony Anecito wrote: I am using Apache Web server for the front end to serve my html requests. Why? Tomcat can serve those requests quite well. I have thought about using JBoss with it's Tomcat as the front end Apache as the back end for handling ordinary http requests but have not found anyone who has done that. That's because it would be silly to do that. Just use tcnative with sendFile enabled on your HTTP Connector: it's the same as back-ending (whatever that means) Tomcat with Apache httpd. This is so I use the standard port 80 for requests over the internet. Tomcat can use port 80 just fine. http://wiki.apache.org/tomcat/HowTo#How_to_run_Tomcat_without_root_priviledges.3F (Please ignore the misspelling of privileges) Web start does do keep-alive requests I believe so maybe that is something to consider. Why would Java WebStart send keep-alive requests? Doesn't it just download a Java application and run it on the client side? Continued communication with the server just seems ... completely unnecessary. My goal is to see if I can get response times over the lan under 1msec using standard cheap hardware and open source software. How fast is your LAN? Using standard ping over a 802.11g network, I get response times around 3/4ms, and that's just to the TCP/IP stack and back. You are talking about adding HTTP protocol decoding, request delegation, and your webapp's code in under 1/4ms? That seems like a stretch unless your web application is pretty much doing nothing. I am close to my 1msec goal (measured at the client) and know if I upgrade my old AMD64 5200+ I use for my server to say a Phenom II quad say a 955 I might be able to pull it off. Ha ha ha. Yes, buying more hardware will (usually) improve your performance, but I suspect the network is the largest contributor to your observed latency, and you can only get Ethernet to go so fast. Client PC: 4-5msec measured after message received from JAX-WS proxy in code. Ha! You're running an XML web service on top of all this? If you are worried about performance, why did you bother with web services at all? ;) Apache: logs 0 microsecond (running on windows so suspect 15msec accuracy from timers even though microsecond resolution expected in Apache logs) win32 timers are horrible: I wouldn't trust them to more than 1/2sec accuracy. Tomcat: 20 microseconds response time measured at web service method called by client. I am using cache at this tier. Again, if measuring on win32, you may be looking at timing lies. For those results client/Apache/Tomcat(Jboss) are on same physical PC. If I try from another client on lan I get the same response time at the client. Thus routers/switches (1Gbps) are not noticable from response time perspective right now. I disagree: if you are saying that localhost is as fast as a gigabit network, then the numbers you are seeing simply can't be right, especially when you're talking about the millisecond and microsecond level. I don't think we can really help you, other than to suggest that you switch to UDP, write your code in C, only use 32-bit little-endian data types, and use a binary protocol that amounts to memory dumping data using C data structures. XML web services... ha ha ha. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrNZRwACgkQ9CaO5/Lv0PAWiwCgw5ZGcg/FIR57mlMffy/We7hD /10AniPV+ZQkILGKkQdVZRKv/p1lrEb/ =IABV -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org