jmx query
Hi, Can someone please explain step by step instruction that how to setup the LDAP authentication for JMX console ? Thanks Guys Vicky
Re: jmx query
vicky wrote: Hi, Can someone please explain step by step instruction that how to setup the LDAP authentication for JMX console ? Pre-requisite : read http://www.catb.org/esr/faqs/smart-questions.html then Step 1 : open a browser Step 2 : go to www.google.com Step 3 : enter setup LDAP authentication for JMX console in the search box Step 4 : press the search icon Step 5 : read the articles listed there Once you have tried one of the procedures listed there, if you still have a problem, come back here for a specific question. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Configuring Comet application
I am using Tomcat7 on Linux and was wondering, is there any way to increase the number of comet threads? Is there a max number of CometEvents that can be queued? I have a feeling either certain connections are not logging themselves, or they are being dropped due to an overload caused by my stress tester. The stress tester launches 20 threads that all connect to an initial servlet i use for logging in, and then to the comet servlet. The login servlet is logging about 19-20 connections consistently, though Im not sure why one is missing on occasion.
Re: Possibly Losing Session when Clustered
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Peter, On 9/15/14 5:00 PM, Peter Kirby wrote: On Mon, Sep 15, 2014 at 3:44 PM, Daniel Mikusa dmik...@pivotal.io wrote: On Mon, Sep 15, 2014 at 3:38 PM, Peter Kirby lpki...@harding.edu wrote: On Mon, Sep 15, 2014 at 2:01 PM, Peter Kirby lpki...@harding.edu wrote: On Mon, Sep 15, 2014 at 10:26 AM, Daniel Mikusa dmik...@pivotal.io wrote: Have you tried deploying a simple test application to confirm that clustering is working properly? I just setup a small session counter and it appears to not be shared across the different servers correctly. Thanks for the suggestion. I'll keep working on that and reply again if, after fixing session info, I still have the same problem. Well, if I had known it would be that fast of a fix, I would not have replied to the email. I had accidentally left one server on Tomcat 8.0.12 and the other on Tomcat 7.0.55. After they were both on the same version, the session information is shared perfectly, which is what I expected. However, the original problem remains. I discovered I don't even have to submit the page to fix the broken session. I can go to the web page and after it loads hit refresh. That takes care of the first page that just resets. After the refresh button I can log in as normal. If I do actually submit the first time, the jessionid variable shows up in the URL when the page comes up the second time in case that's helpful. Thanks for your time. It might be helpful to look at the access logs on your Tomcat instances and also whatever is in front of them. This might start to give an account of what happens after the request leaves your browser. Also might be helpful to increase the log level for clustering. I think the following should be helpful. org.apache.catalina.ha.level = FINEST org.apache.catalina.tribes.level = CONFIG Note, you'll probably also have to set the log level of your handler to FINEST, otherwise that'll filter out these messages. 1catalina.org.apache.juli.FileHandler.level = FINEST or set .level for whatever handler the messages are being sent to. Dan Thanks, I'll play with that and see if I see anything. @Felix - The clustering is just done with DNS. I'm running Tomcat by itself, not behind Apache. I do not have a jvmRoute value set either in test nor production and production works great. So, replicated sessions (duh, clustering) and no formal load-balancing (meaning that each request is randomly sent to a Tomcat backend server)? Are you using cookie-based session tracking? Does the test client support clients and have them enabled? I've seen things like this happen when testing with cookies disabled and forgetting to run the /j_security_check URL through request.encodeURL(), so your session id gets dropped when you try to log in. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJUGFZIAAoJEBzwKT+lPKRYAMQP/3LqMLJuePJfdPwp1ZGKU2XA poi8bY2u1yCJRJPpRUqEU6zNP8mF9wfkucOlkquMBkyJl71K22jF1qXdDFq7iP0X ghdnUlVbsHpMmHAsZjkPiiSZONuKw17jT77R0Y4iGBW3rY19XQ9ZDM2Vy5bJyWTA t7ZeKlhr017EwpuEl87YgTcSO5a0fTlAy9Qk0UE5GkGIhe4XTOfkKne5QUUXY8vV npuC1U5XyzxyHS3jzKkCqoPFyMIKFexBepOP+DJf2yqhcsGQPuDVhji6Y5uy1WkC unRwBcYK3qj58sx1mQ5nZ5baOg7kFS4JUKjuKaoF/9zYTBEcVxJBpehlD3pz6qFr 4H2GnhUUJ/VCPsqy3Rn/nRzA6kieq4pKoCuRO3dc7K8n4I0MNIM5gia2JhNm0YQW XYornMKwJMRlXLPFab0WGFKwUwa8nQdUhJjvKm0jBCSlEfhxhDS4WdRIVAtBBu71 dcMJ011Mvh4rQ8j65meEMrNKfAJLGPzuYqdiMjnVXNT9phFV09OG9vYNXJORIL88 JpwF4TkEo4hL2WjV/XodEnoa3tRWMtpJ2jIaV0Zu28SYa+CPPb0nAk/y9daWNWBx BqgqS5V1S+1XRRTy09n7f8zoGv0+FseLe629K1sUcoCH+dy0jt6MPQeUYdiRy4Yg GnSLEJn10rf84rQkr2VO =TISm -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Possibly Losing Session when Clustered
Thanks all for your suggestions. Unfortunately, I had to take the quick way out. I just cloned the other working test server to the server in question. All is working now. I'm not sure what I messed up when setting up this server (3 times), but this will have to do for now as I've already spent nearly 2 weeks on trying to fix this. I apologize this isn't very helpful to anyone that might have a similar issue in the future, but I simply do not have time to continue the investigation. Peter -- Peter Kirby System and Database Administrator @ Harding University
Re: Configuring Comet application
Hey, I actually answered my own question. Turns out config was not on comet page but on connectors page for NIO connectors. I do have another problem though. Stress tester connects and works fine when I lower number of connections from 20 to 10, however, when the program exits and everything disconnects, tomcat either crashes or hangs with no exception or error being printed in the log. Im pretty sure its tomcat and not just the web app because tomcat manager is inaccessible as well. Any suggestions on trouble shooting this? On Tue, Sep 16, 2014 at 8:59 AM, Elias Kopsiaftis yemi...@gmail.com wrote: I am using Tomcat7 on Linux and was wondering, is there any way to increase the number of comet threads? Is there a max number of CometEvents that can be queued? I have a feeling either certain connections are not logging themselves, or they are being dropped due to an overload caused by my stress tester. The stress tester launches 20 threads that all connect to an initial servlet i use for logging in, and then to the comet servlet. The login servlet is logging about 19-20 connections consistently, though Im not sure why one is missing on occasion.
Re: Possibly Losing Session when Clustered
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Peter, On 9/16/14 12:02 PM, Peter Kirby wrote: Thanks all for your suggestions. Unfortunately, I had to take the quick way out. I just cloned the other working test server to the server in question. All is working now. I'm not sure what I messed up when setting up this server (3 times), but this will have to do for now as I've already spent nearly 2 weeks on trying to fix this. I apologize this isn't very helpful to anyone that might have a similar issue in the future, but I simply do not have time to continue the investigation. The good news is that it's working, and the answer was probably that one or more of the nodes was not configured exactly correctly. Without any context other than it didn't work, it's not likely that determining your exact problem would have really helped anyone else. It might just come down to inspecting ones configuration and ensuring that everything is just so. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJUGG4SAAoJEBzwKT+lPKRYTnAP/1+iAvQkctFP5MRZrBi21Vr5 2cMVaCLjL9IVvv7Nw/xaBU0/yU55r/Y6lULLUWXqWyg7pBm2RB0wsUvgjNuk5NGr WMcQbnlQH8r7WMQbd0sCe9nS4PS95kuA/MO8E9OmgeiHEeXW9+TbDEZR97dpPauf ko06T9iHfQFRZ3+0lnZTYPEUc/OwI3paeazSylkb+vn+cNPiqjsSVKSHLZ0gPfLT sOpLEtXJW+w6GRTvOTJjjXbUHMUYI5Uy5gwBSMtJK28329Dr+Ac5K1wqR2E5805a MQRc5WQkNwX4rN3k1eitgwLKOlK8Vm8CuqhTa93wyDY5Ryc2XaZFcExDYnbymgHV BUDWWRpFUcL5/wDmiVSH1G4jWSUz/OmcN9fhXESdVQZLfRxvIei7nX0ViPY/8Zt2 zUdIc1Yq7RFLymu0me0McVPZ8vkVlOZ5htWHiVdcjBgH/svDYyl+KbvbiCXMR2x3 XA2xhNwDeARMJsJxpi4fAlrxCmvBwmeuna+RK4PeKUInWoj4wxCvOdfRUb3CH0J4 Ez2dB6o/bd5o2g76zdVHdU24zcXEm/KhJtrBiaufFC1WudcH309hEKP4cWYvotKE Iwk+3c+/Bcfkhypi3bXdXQmYzcTc8CU2jCXYhIUomovbp7kcnsckM88xj60p3INR WB97xoniA8KqKhWGb5fm =EOEk -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Possibly Losing Session when Clustered
On Tue, Sep 16, 2014 at 10:06 AM, Christopher Schultz ch...@christopherschultz.net wrote: On 9/16/14 12:02 PM, Peter Kirby wrote: Thanks all for your suggestions. Unfortunately, I had to take the quick way out. I just cloned the other working test server to the server in question. All is working now. I'm not sure what I messed up when setting up this server (3 times), but this will have to do for now as I've already spent nearly 2 weeks on trying to fix this. It might just come down to inspecting ones configuration and ensuring that everything is just so. A shining example of why tools like Chef and Puppet exist :-) -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Configuring Comet application
I managed to solve the problem, nothing to do with Tomcat actually. Turns out that I didnt configure c3p0 right so the application was being starved for db resources, causing it to look like it was hanging or crashing. Thats why there was no error in the tomcat logs, nothing went wrong with Tomcat On Tue, Sep 16, 2014 at 12:05 PM, Elias Kopsiaftis yemi...@gmail.com wrote: Hey, I actually answered my own question. Turns out config was not on comet page but on connectors page for NIO connectors. I do have another problem though. Stress tester connects and works fine when I lower number of connections from 20 to 10, however, when the program exits and everything disconnects, tomcat either crashes or hangs with no exception or error being printed in the log. Im pretty sure its tomcat and not just the web app because tomcat manager is inaccessible as well. Any suggestions on trouble shooting this? On Tue, Sep 16, 2014 at 8:59 AM, Elias Kopsiaftis yemi...@gmail.com wrote: I am using Tomcat7 on Linux and was wondering, is there any way to increase the number of comet threads? Is there a max number of CometEvents that can be queued? I have a feeling either certain connections are not logging themselves, or they are being dropped due to an overload caused by my stress tester. The stress tester launches 20 threads that all connect to an initial servlet i use for logging in, and then to the comet servlet. The login servlet is logging about 19-20 connections consistently, though Im not sure why one is missing on occasion.
Re: Configuring Comet application
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Elias, On 9/16/14 4:55 PM, Elias Kopsiaftis wrote: I managed to solve the problem, nothing to do with Tomcat actually. Turns out that I didnt configure c3p0 right so the application was being starved for db resources, causing it to look like it was hanging or crashing. Thats why there was no error in the tomcat logs, nothing went wrong with Tomcat I'm interested in why you are using c3p0. I often ask people who they are using it and they say because commons-dbcp is crap but a) they have been looking at decade-old complaints of DBCP and b) c3p0 doesn't have any production-quality released, yet. So I'm wondering why you are using c3p0 instead of either Tomcat's default DBCP or tomcat-pool which should be higher-performance if you feel like you need that. - -chris On Tue, Sep 16, 2014 at 12:05 PM, Elias Kopsiaftis yemi...@gmail.com wrote: Hey, I actually answered my own question. Turns out config was not on comet page but on connectors page for NIO connectors. I do have another problem though. Stress tester connects and works fine when I lower number of connections from 20 to 10, however, when the program exits and everything disconnects, tomcat either crashes or hangs with no exception or error being printed in the log. Im pretty sure its tomcat and not just the web app because tomcat manager is inaccessible as well. Any suggestions on trouble shooting this? On Tue, Sep 16, 2014 at 8:59 AM, Elias Kopsiaftis yemi...@gmail.com wrote: I am using Tomcat7 on Linux and was wondering, is there any way to increase the number of comet threads? Is there a max number of CometEvents that can be queued? I have a feeling either certain connections are not logging themselves, or they are being dropped due to an overload caused by my stress tester. The stress tester launches 20 threads that all connect to an initial servlet i use for logging in, and then to the comet servlet. The login servlet is logging about 19-20 connections consistently, though Im not sure why one is missing on occasion. -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJUGLdCAAoJEBzwKT+lPKRY1IIP/RHhfuszrF3wmzltiSjY6KYP afxXJTAoCFXLB66lQABdFp/1wCEroUZuQBhJ19TnAIzOvCjNhtoSSGGDnC6ExqnL Ubt4PQrwu/8Ghzzf12qlnW175l/gFJMKR7WogjDOw9kkwWue/S2zhxmIAryhUYzC +p72cGzHqyL3PVMiNRlycqfQzDMaTNnvOOMrU4GkpSefurySCQcwevCyTNtZcqpa P5fXibdfHdCAl92fMMoOl6Dqk2sbbmRRd77mV8wL82Hox4dzaGSAkKeBjaRDw0y4 Ngk9BRpwcMw5QedKnHCX4f3QEUS323rDj/mOysyaai00nA3IlW8H3XcXPP/1DOfM /bMwXUC3D7ZwvTz+1/XbOreLMcVIJmh17z2fMk8KHgRjAE9eFIC/QhIV+cHDGi7l gU7NezjP7p3yamMi2XCRiw2By4aCIjWnMnBfjoz5D8nmISpl1u/DE+Ez/HKE7qtN SfyQdSVZeeLOXgQLywLjd4xot5J6vO1miIlFP5nDCtIjHMNbebNbdtpbn8dY6lw0 0kWEaHEfih4BZLVmCjjrxI6AYfAK1H0YAH4Hornd32+8+J7iEeKmdMzwFKrL9VCu 9uYUyiyy0AGd9DIbEfir2qOF/ZrXwyXtYlsSFkEDMLcN1rQUpGgA/RmBHj/+GvVL Kc0NwvOs99aFZtVMDGzk =esd6 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Configuring Comet application
Well to be honest I didnt know any better :-) A friend of mine who is a better developer than I am recommended it. I have no real reason. On Tue, Sep 16, 2014 at 6:18 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Elias, On 9/16/14 4:55 PM, Elias Kopsiaftis wrote: I managed to solve the problem, nothing to do with Tomcat actually. Turns out that I didnt configure c3p0 right so the application was being starved for db resources, causing it to look like it was hanging or crashing. Thats why there was no error in the tomcat logs, nothing went wrong with Tomcat I'm interested in why you are using c3p0. I often ask people who they are using it and they say because commons-dbcp is crap but a) they have been looking at decade-old complaints of DBCP and b) c3p0 doesn't have any production-quality released, yet. So I'm wondering why you are using c3p0 instead of either Tomcat's default DBCP or tomcat-pool which should be higher-performance if you feel like you need that. - -chris On Tue, Sep 16, 2014 at 12:05 PM, Elias Kopsiaftis yemi...@gmail.com wrote: Hey, I actually answered my own question. Turns out config was not on comet page but on connectors page for NIO connectors. I do have another problem though. Stress tester connects and works fine when I lower number of connections from 20 to 10, however, when the program exits and everything disconnects, tomcat either crashes or hangs with no exception or error being printed in the log. Im pretty sure its tomcat and not just the web app because tomcat manager is inaccessible as well. Any suggestions on trouble shooting this? On Tue, Sep 16, 2014 at 8:59 AM, Elias Kopsiaftis yemi...@gmail.com wrote: I am using Tomcat7 on Linux and was wondering, is there any way to increase the number of comet threads? Is there a max number of CometEvents that can be queued? I have a feeling either certain connections are not logging themselves, or they are being dropped due to an overload caused by my stress tester. The stress tester launches 20 threads that all connect to an initial servlet i use for logging in, and then to the comet servlet. The login servlet is logging about 19-20 connections consistently, though Im not sure why one is missing on occasion. -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJUGLdCAAoJEBzwKT+lPKRY1IIP/RHhfuszrF3wmzltiSjY6KYP afxXJTAoCFXLB66lQABdFp/1wCEroUZuQBhJ19TnAIzOvCjNhtoSSGGDnC6ExqnL Ubt4PQrwu/8Ghzzf12qlnW175l/gFJMKR7WogjDOw9kkwWue/S2zhxmIAryhUYzC +p72cGzHqyL3PVMiNRlycqfQzDMaTNnvOOMrU4GkpSefurySCQcwevCyTNtZcqpa P5fXibdfHdCAl92fMMoOl6Dqk2sbbmRRd77mV8wL82Hox4dzaGSAkKeBjaRDw0y4 Ngk9BRpwcMw5QedKnHCX4f3QEUS323rDj/mOysyaai00nA3IlW8H3XcXPP/1DOfM /bMwXUC3D7ZwvTz+1/XbOreLMcVIJmh17z2fMk8KHgRjAE9eFIC/QhIV+cHDGi7l gU7NezjP7p3yamMi2XCRiw2By4aCIjWnMnBfjoz5D8nmISpl1u/DE+Ez/HKE7qtN SfyQdSVZeeLOXgQLywLjd4xot5J6vO1miIlFP5nDCtIjHMNbebNbdtpbn8dY6lw0 0kWEaHEfih4BZLVmCjjrxI6AYfAK1H0YAH4Hornd32+8+J7iEeKmdMzwFKrL9VCu 9uYUyiyy0AGd9DIbEfir2qOF/ZrXwyXtYlsSFkEDMLcN1rQUpGgA/RmBHj/+GvVL Kc0NwvOs99aFZtVMDGzk =esd6 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: WAR file deployment question
try manager, located in the webapps/manager. You need to edit your tomcat-users.xml, After that you can deploy your app via manager. 2014-09-16 8:11 GMT+08:00 James H. H. Lampert jam...@touchtonecorp.com: We have a rather large WAR file. 89,925,956 bytes. And we have cable internet. With its usual extremely asymmetrical bandwidth: a download pipe the size of an air conditioning duct, and an upload pipe the size of an insulin needle. Squirting this huge WAR file through such a narrow pipe takes over half an hour. But our web and FTP servers are on a hosting service's server, so they're not passing through the narrow pipe. Can I, from Manager, deploy a WAR file that's sitting on a web or FTP site, instead of on my local system? -- James H. H. Lampert Touchtone Corporation - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org