Sorry for the miscommunication. I understand that active users with a session are supposed to stay with the original version that they were associated with. My confusion was caused by the fact that when I did an auto deploy, the users were immediately being migrated to the new version of the application. I would not have expected this because I thought that the cookies attribute is set to true by default and thus they would have an active session.
However, I have been able to achieve my desired results by setting cookies="false" within the context files for the applications I manually deployed. Thanks, Jeremy On 7/2/13 2:10 PM, "Christopher Schultz" <ch...@christopherschultz.net> wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA256 > >Jeremy, > >On 7/2/13 12:09 PM, Majors, Jeremy wrote: >> When I run Jmeter requests consistently against website1 and then >> deploy the new version of the web site (website1##002) I do not >> see any active sessions for website##002 in tomcat manager even >> after website1##002 is fully loaded. Please note that if I open up >> a new safari browser window and access website1#002 then I do see >> an active session. > >Are you sure that JMeter is creating new "users" during its test? >Usually JMeter is configured to execute a workflow and preserve >cookies, just as a real user with a browser would. So, if you have 100 >users running your test(s) indefinitely, you'll only get 100 sessions >no matter what. If they all are created before you deploy your new >webapp version, then those sessions will remain attached to the old >version (that's how parallel deployment works). > >> What is confusing me at this point is that if I deploy a WAR using >> the auto deployment method (copying the myapp.war into the webapps >> folder) and then deploy a new version using the same mechanism >> (myapp##002.war) then I do see the users automatically migrated to >> the new version when running my Jmeter tests. Please note that >> this behavior (immediate migration) is what we desire. > >I think you need to look carefully at what is really happening. It's >not clear from above how you are triggering a parallel deployment in >each case. It basically sound like you are saying "while it does not >work, it actually does". Please be clear about what you are doing when >you think it works and what you are doing when you think it doesn't work. > >Also tell us what you expect and why, and what happens instead. > >> In addition to the fact that when the migration of users occurs is >> different, I am also seeing a huge discrepancy between the number >> of sessions that tomcat manager says are currently active when I >> deploy using the folder approach vs. the automatic deployment >> approach. When using the folder approach the number of sessions >> always matches the number of users (via a thread group) in Jmeter. >> However, when I use the automatic deployment process the number of >> sessions continues to grow as I allow Jmeter to run longer (at one >> point I had thousands of sessions). > >Do your JMeter "users" ever log out? > >- -chris >-----BEGIN PGP SIGNATURE----- >Version: GnuPG/MacGPG2 v2.0.17 (Darwin) >Comment: GPGTools - http://gpgtools.org >Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > >iQIcBAEBCAAGBQJR0yWbAAoJEBzwKT+lPKRY4y8QAJ9d9Rfth362CgMpvKaT/zQH >LMvUBr4jJT5YjkwKhK3qXXzOHuJRvBtFZy4ul/4TERR8p8fUChnVTTTVWPPdfw2f >TbXiVjGpgVyveRMWRQSGHukHSelUvN9SkkEfxkD5x6oZj4lWTNsZ4mTUgmOYAwsG >z6xchc6CJF1Cay9mE/vgzhYQrbYH/A2XuH7BlSWqH6JzMz1r+BrOpiIETwCnr0bv >sdUQPwFIT3EEjz+rKBwcseVQ2arsEsJ+iI9RCVVy31AF0Eno1oWxm6OLSEHTDs68 >MLUj9rNULv8ZogJ9XPLlqowwCr8ve3e8DmhLzG4Ye4j+OnJlx/87CQnv8XFNqH9I >IpWw4mQYGoYXw4mDhQT7P3NRhLzuaA14RVI2vkj2DPY7qj9Oj47YRfAF5gjZjNTK >lq5etTiG4TiwzvzadvsXpz/zzIUG/RQ489DeDLlkT/7PwKaohwG5xIHPC+JK/+Xd >FjbkW92fYy6g2w+GA3L3mUZmeWI1XX0EyS6vIX9MPmOmkNGrKLLfc9uS3ArDMAh2 >h9rTt3t+ahun0RcTDEtxQYeMDXWVgZ+eyTzvxGpkHE/Q64n/U+lcuh9P+lOsuH0c >+1fCbCveQOB9h5L0Oqbc5Ha+e19VmdtkkpMP4VwV0YljoSsO7Zrmpj9F79CE+wSW >twskY9X1dH+qzoPyP0+v >=MPUQ >-----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