Using tabbed browsers causes session sharing
Hello All While using tabbed browsers (e.g. IE 7) I am facing a login problem. Say on Tab#1 I login with a username A, on Tab#2 I login with username B, I still see A's session. Apparently the browser/Tomcat doesn't create a new session. Has anyone faced this problem? Are there any fixes? Thanks Murthy
Why does Tomcat become slow during weekends?
We have a website based on embedded Tomcat with Jboss 4.0.2. We noticed that every weekend the Tomcat becomes sluggish. I mean there are no errors like HTTP404. The website simply hangs. We theorized that JVM is busy with garbage collection. Is that realistic? Does anyone have any other suggestions? Thanks Murthy - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
RE: Why does Tomcat become slow during weekends?
Peter Crowther [EMAIL PROTECTED] wrote: From: murthy gandikota [mailto:[EMAIL PROTECTED] We have a website based on embedded Tomcat with Jboss 4.0.2. We noticed that every weekend the Tomcat becomes sluggish. Backups? Congestion on the network due to a site that's only accessed heavily at weekends? There are no backups. The website uses DB2 which is backed up infrequently. And all of our users use the site during business hours on weekdays. We theorized that JVM is busy with garbage collection. Is that realistic? No. The JVM collects garbage at intervals measured in seconds or minutes, and takes milliseconds or seconds. It also doesn't know about weekends :-). I forgot to mention that there is an apache/mod-jk load balancer in the front end. On weekends we end up restarting everything including apache and jboss. Does anyone have any other suggestions? I'd guess system maintenance of some kind. Is this on a physical server or a virtual one? There is no other system maintenance more than what I have mentioned. The Tomcat runs on a physical server. Heard a virtual server will be even slower. - Peter Thanks Murthy - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
Re: Why does Tomcat become slow during weekends?
David kerber [EMAIL PROTECTED] wrote: Just a SWAG: Maybe the traffic slows down so much that the database (if there is one) is timing out connections and dumping stuff from its cache, so that when people do hit it, the db has to create a new connection and read lots of stuff from disk, which was in RAM cache during the week? D This seems likely as we have seen some problems with DB connections. I am not sure how to keep the DB connections alive when there is no traffic on the website. Thanks Murthy - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
Re: Apache 2.2.4 + Tomcat 5.5 + Mod_jk 1.2 causing login loop
The problem was traced to duplicate jvmRoute in the Tomcat's server.xml murthy gandikota [EMAIL PROTECTED] wrote: We have 2 tomcat servers being load-balanced by a front-end apache server using mod-jk. Whenever we open a new browser and point the url to the http://fakedomain.com/xyz/content/home/home.jsf and submit the form, we get back the same form again with sessionid. Effectively, we end up logging in twice. In other words, the form is fetched twice and submitted twice. Can anyone please guess what's going on ? Here are the worker.properties: worker.list=loadbalancer worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=worker1,worker2 worker.worker1.type=ajp13 worker.worker1.host=172.16.170.30 worker.worker1.port=8009 worker.worker1.lbfactor=1 worker.worker1.retries=1 worker.worker2.type=ajp13 worker.worker2.host=172.16.170.35 worker.worker2.port=8009 worker.worker2.lbfactor=1 worker.worker2.retries=1 This is mod-jk.conf # Load mod_jk module # Specify the filename of the mod_jk lib LoadModule jk_module modules/mod_jk.so # Where to find workers.properties JkWorkersFile conf/worker.properties # Where to put jk logs JkLogFile logs/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevel debug # Select the log format JkLogStampFormat [%a %b %d %H:%M:%S %Y] # JkOptions indicates to send SSK KEY SIZE JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories # JkRequestLogFormat JkRequestLogFormat %w %V %T # Mount your applications JkMount /nva/* loadbalancer JkMount /dwr/* loadbalancer #JkMount /es/* es JkMount /es/* loadbalancer # You can use external file for mount points. # It will be checked for updates each 60 seconds. # The format of the file is: /url=worker # /examples/*=loadbalancer JkMountFile conf/uriworkermap.properties # Add shared memory. # This directive is present with 1.2.10 and # later versions of mod_jk, and is needed for # for load balancing to work properly JkShmFile logs/jk.shm # Add jkstatus for managing runtime data JkMount status Order deny,allow Deny from all Allow from 127.0.0.1 Finally in httpd.conf we have this line Include conf/mod-jk.conf If don't see any errors. What should I be looking in the debug output? Thanks - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
Apache 2.2.4 + Tomcat 5.5 + Mod_jk 1.2 causing login loop
We have 2 tomcat servers being load-balanced by a front-end apache server using mod-jk. Whenever we open a new browser and point the url to the http://fakedomain.com/xyz/content/home/home.jsf and submit the form, we get back the same form again with sessionid. Effectively, we end up logging in twice. In other words, the form is fetched twice and submitted twice. Can anyone please guess what's going on ? Here are the worker.properties: worker.list=loadbalancer worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=worker1,worker2 worker.worker1.type=ajp13 worker.worker1.host=172.16.170.30 worker.worker1.port=8009 worker.worker1.lbfactor=1 worker.worker1.retries=1 worker.worker2.type=ajp13 worker.worker2.host=172.16.170.35 worker.worker2.port=8009 worker.worker2.lbfactor=1 worker.worker2.retries=1 This is mod-jk.conf # Load mod_jk module # Specify the filename of the mod_jk lib LoadModule jk_module modules/mod_jk.so # Where to find workers.properties JkWorkersFile conf/worker.properties # Where to put jk logs JkLogFile logs/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevel debug # Select the log format JkLogStampFormat [%a %b %d %H:%M:%S %Y] # JkOptions indicates to send SSK KEY SIZE JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories # JkRequestLogFormat JkRequestLogFormat %w %V %T # Mount your applications JkMount /nva/* loadbalancer JkMount /dwr/* loadbalancer #JkMount /es/* es JkMount /es/* loadbalancer # You can use external file for mount points. # It will be checked for updates each 60 seconds. # The format of the file is: /url=worker # /examples/*=loadbalancer JkMountFile conf/uriworkermap.properties # Add shared memory. # This directive is present with 1.2.10 and # later versions of mod_jk, and is needed for # for load balancing to work properly JkShmFile logs/jk.shm # Add jkstatus for managing runtime data Location /jkstatus/ JkMount status Order deny,allow Deny from all Allow from 127.0.0.1 /Location Finally in httpd.conf we have this line Include conf/mod-jk.conf If don't see any errors. What should I be looking in the debug output? Thanks - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.