Re: Tomcat threads dependency on net.core.somaxconn value on Linux

2015-04-20 Thread satish jupalli
Thanks Christopher, it makes more sense now. On Fri, Apr 17, 2015 at 8:51 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Satish, On 4/17/15 7:20 AM, satish jupalli wrote: I would like to support a bust in traffic we are

Apache Tomcat jk connector 400 bad request

2015-04-20 Thread Razi
Hi there, I would like to explain my scenario, perhaps this has been answered on this forum. A bunch of random Ajax requests from the browser (IE9) end up with a 400 error code on the apache webserver and the the browser hangs for 5 minutes. Httpwatch shows the error code as

Re: [Tomcat8] What happened to WebappLoader.addRepository()?

2015-04-20 Thread Thusitha Thilina Dayaratne
Hi, Try addURL(). Sorry for the inconvenience. As I understand addURL() method is defined in WebAppClassLoaderBase. So should I obtain the WebAppClassLoaderBase using getClassLoader() method and use reflections to call the addURL() method? No need for reflection. Cast to URLClassloader.

Re: WebappLoader vs WebappClassLoader

2015-04-20 Thread Thusitha Thilina Dayaratne
Hi, Could someone tell me what is the purpose of having WebappLoader and WebappClassLoader in Tomcat? WebappLoader is the Tomcat object that a user can configure that represents the class loader. It remains the same across web application stop/start. WebappClassLoader is the actual class

Re: WebappLoader vs WebappClassLoader

2015-04-20 Thread Mark Thomas
On 20/04/2015 14:22, Thusitha Thilina Dayaratne wrote: Hi, Could someone tell me what is the purpose of having WebappLoader and WebappClassLoader in Tomcat? WebappLoader is the Tomcat object that a user can configure that represents the class loader. It remains the same across web

Re: French chars not displayed correctly - Tomcat 7

2015-04-20 Thread Mark Thomas
On 20/04/2015 15:49, Neill Lima wrote: Try adding this to your html: head *meta charset=UTF-8* /head On Mon, Apr 20, 2015 at 4:45 PM, radiatejava radiatej...@gmail.com wrote: Hello Tomcat users, have code like this in my jsp: td${pageKeys.ui_user_name_label};/td Where td represents

WebappLoader vs WebappClassLoader

2015-04-20 Thread Thusitha Thilina Dayaratne
Hi, Could someone tell me what is the purpose of having WebappLoader and WebappClassLoader in Tomcat? As I understand WebappClassLoader is per web application and WebAppLoader for tomcat server instance. Am I wrong? Thanks Best Regards --

Re: File descriptors peaks with latest stable build of Tomcat 7

2015-04-20 Thread Neill Lima
Increasing the amount of opened file descriptors is an accepted fine-tune (*if your application it is handling the threads properly*) ulimit -n ulimit -n [new_value] ulimit -n If even after allowing more fds the performance is not adequate, some sort of scaling (H/V) is necessary. On Mon, Apr

Re: File descriptors peaks with latest stable build of Tomcat 7

2015-04-20 Thread Rainer Jung
Am 20.04.2015 um 14:11 schrieb Thomas Boniface: Hi, I have tried to find help regarding an issue we experience with our platform leading to random file descriptor peaks. This happens more often on heavy load but can also happen on low traffic periods. Our application is using servlet 3.0 async

File descriptors peaks with latest stable build of Tomcat 7

2015-04-20 Thread Thomas Boniface
Hi, I have tried to find help regarding an issue we experience with our platform leading to random file descriptor peaks. This happens more often on heavy load but can also happen on low traffic periods. Our application is using servlet 3.0 async features and an async connector. We noticed that

Re: Cluster - Session replication error: Unable to apply diff

2015-04-20 Thread Keiichi Fujino
This NPE has been caused by that apply the diff data to a ReplicatedMapEntry that has not set a MapOwner. Usually, ReplicatedMapEntry always has to have the MapOwner. I think this is probably a bug. Please open Bugzilla entry. I will scrutinize the code. 2015-04-20 15:04 GMT+09:00 Keiichi Fujino

Re: org.apache.catalina.authenticator.SingleSignOn.sessionEvent() equivalent in Tomcat 8

2015-04-20 Thread Mark Thomas
On 20/04/2015 06:41, Thusitha Thilina Dayaratne wrote: Hi In tomcat 7 there is a method to set session event as follows in the org.apache.catalina.authenticator.SingleSignOn void sessionEvent(SessionEvent event) But this method has been removed in tomcat 8. Is there a equivalent in

Re: File descriptors peaks with latest stable build of Tomcat 7

2015-04-20 Thread André Warnier
Thomas Boniface wrote: I did some captures during a peak this morning, I have some lsof and netstat data. It seems to me that most file descriptors used by tomcat are some http connections: thomas@localhost  ~/ads3/tbo11h12  cat lsof| wc -l 17772 thomas@localhost  ~/ads3/tbo11h12  cat

Re: File descriptors peaks with latest stable build of Tomcat 7

2015-04-20 Thread Thomas Boniface
I did some captures during a peak this morning, I have some lsof and netstat data. It seems to me that most file descriptors used by tomcat are some http connections: thomas@localhost  ~/ads3/tbo11h12  cat lsof| wc -l 17772 thomas@localhost  ~/ads3/tbo11h12  cat lsof | grep TCP | wc -l

Re: File descriptors peaks with latest stable build of Tomcat 7

2015-04-20 Thread Rainer Jung
Am 20.04.2015 um 15:41 schrieb Rainer Jung: Am 20.04.2015 um 14:11 schrieb Thomas Boniface: Hi, I have tried to find help regarding an issue we experience with our platform leading to random file descriptor peaks. This happens more often on heavy load but can also happen on low traffic

Re: French chars not displayed correctly - Tomcat 7

2015-04-20 Thread Neill Lima
Try adding this to your html: head *meta charset=UTF-8* /head On Mon, Apr 20, 2015 at 4:45 PM, radiatejava radiatej...@gmail.com wrote: Hello Tomcat users, have code like this in my jsp: td${pageKeys.ui_user_name_label};/td Where td represents a cell of an html table. Value of the

French chars not displayed correctly - Tomcat 7

2015-04-20 Thread radiatejava
Hello Tomcat users, have code like this in my jsp: td${pageKeys.ui_user_name_label};/td Where td represents a cell of an html table. Value of the variable pageKeys.ui_user_name_label populated in server side is in french and it is exactly as shown below: Nom d'utilisateur However, while

Re: French chars not displayed correctly - Tomcat 7

2015-04-20 Thread radiatejava
Of course I have that in my html page. My aim was to ask whether tomcat (its libraries) itself is doing encoding of special chars. Thanks. On Mon, Apr 20, 2015 at 8:19 PM, Neill Lima neill.l...@visual-meta.com wrote: Try adding this to your html: head *meta charset=UTF-8* /head

Re: File descriptors peaks with latest stable build of Tomcat 7

2015-04-20 Thread Thomas Boniface
Hi, Both nginx and tomcat are hosted on the same server when listing the connections I see both the connections from nginx to tomcat (the first one create) and the one from tomcat to nginx used to reply. I may have presented things the bad way though (I'm not too good regarding system level). I

Re: File descriptors peaks with latest stable build of Tomcat 7

2015-04-20 Thread Thomas Boniface
Thanks for your time Rainer, I get what you mean regarding the application getting slow. This server was also logging the garbage collection activity and it seems normal even when the problem is occuring, there is no big variation in the time taken to do a garbage collection operation. I don't

Re: Cluster - Session replication error: Unable to apply diff

2015-04-20 Thread Keiichi Fujino
Hi Are there other error or exception in your log? Please show us your cluster configuration in your server.xml. e.g. - What is mapSendOptions? - Which Interceptor do you use? 2015-04-15 3:55 GMT+09:00 Théo Chamley theo...@mley.fr: Hello, I have a working Tomcat 8.0.15 cluster with 3

Re: File descriptors peaks with latest stable build of Tomcat 7

2015-04-20 Thread Rainer Jung
Am 20.04.2015 um 17:40 schrieb Thomas Boniface: Hi, Both nginx and tomcat are hosted on the same server when listing the connections I see both the connections from nginx to tomcat (the first one create) and the one from tomcat to nginx used to reply. I may have presented things the bad way