Re: Inaccurate active session count in JavaMonitor (Solved)

2009-07-22 Thread Cheong Hee (Gmail)
() for condition check Correct me if wrong... Thanks for sharing!! Cheers Cheong Hee - Original Message - From: "Chuck Hill" To: "Cheong Hee (Gmail)" Cc: Sent: Wednesday, July 22, 2009 2:00 PM Subject: Re: Inaccurate active session count in JavaMonitor (Solved)

Re: Inaccurate active session count in JavaMonitor (Solved)

2009-07-21 Thread Chuck Hill
Hill" > To: "Cheong Hee (Gmail)" Cc: Sent: Tuesday, July 21, 2009 10:04 PM Subject: Re: Inaccurate active session count in JavaMonitor (Solved) On Jul 21, 2009, at 2:44 AM, Cheong Hee (Gmail) wrote: Yeap, exception found. lockManager.unlock() throws IllegalStateExcepti

Re: Inaccurate active session count in JavaMonitor (Solved)

2009-07-21 Thread Cheong Hee (Gmail)
makeStrongReferences findReference emptyUnregisterQueue sameThreadAssert Cheers Cheong Hee - Original Message - From: "Chuck Hill" To: "Cheong Hee (Gmail)" Cc: Sent: Tuesday, July 21, 2009 10:04 PM Subject: Re: Inaccurate active session count in JavaMonitor (Solved) On Jul

Re: Inaccurate active session count in JavaMonitor (Solved)

2009-07-21 Thread Chuck Hill
On Jul 21, 2009, at 2:44 AM, Cheong Hee (Gmail) wrote: Yeap, exception found. lockManager.unlock() throws IllegalStateException when lock count is zero. Which says to me that it was not locked to begin with. Try if (lockManager.isLocked()) { lockManager.unlock(); } When the lock co

Re: Inaccurate active session count in JavaMonitor (Solved)

2009-07-21 Thread Cheong Hee (Gmail)
Yeap, exception found. lockManager.unlock() throws IllegalStateException when lock count is zero. When the lock count is > 1, MultiEC lock manager is happier to unlock all ECs, but not when lock count=0. Try to relate why the lock count=0 is handled by exception. Is it acting like an insuran

Re: Inaccurate active session count in JavaMonitor

2009-07-20 Thread Chuck Hill
And just checked my code that no WOSession has been declared in any wocomponent. You want to look at the code BEFORE the call to super. Chuck - Original Message - From: "Chuck Hill" > To: "Cheong Hee (Gmail)" Cc: Sent: Saturday, July 18, 2009 1:27 AM Subje

Re: Inaccurate active session count in JavaMonitor

2009-07-20 Thread Cheong Hee (Gmail)
t;Cheong Hee (Gmail)" Cc: Sent: Saturday, July 18, 2009 1:27 AM Subject: Re: Inaccurate active session count in JavaMonitor On Jul 17, 2009, at 10:15 AM, Cheong Hee (Gmail) wrote: Adding the code as mentioned earlier, I have run three sessions with the following conditions: session1:

Re: Inaccurate active session count in JavaMonitor

2009-07-20 Thread Anjo Krank
rk Ritchie" > To: "Chuck Hill" Cc: "Cheong Hee (Gmail)" ; > Sent: Thursday, July 16, 2009 4:56 PM Subject: Re: Inaccurate active session count in JavaMonitor On 15-Jul-09, at 9:21 AM, Chuck Hill wrote: The memory usage stats are meaningless, but the active session

Re: Inaccurate active session count in JavaMonitor

2009-07-17 Thread Chuck Hill
On Jul 17, 2009, at 10:15 AM, Cheong Hee (Gmail) wrote: Adding the code as mentioned earlier, I have run three sessions with the following conditions: session1: log out gracefully by the user session2: time out occurs session3: time out occurs The sequence of sessions are session1, following

Re: Inaccurate active session count in JavaMonitor

2009-07-17 Thread Cheong Hee (Gmail)
Adding the code as mentioned earlier, I have run three sessions with the following conditions: session1: log out gracefully by the user session2: time out occurs session3: time out occurs The sequence of sessions are session1, following by session2 and then session3. When session1 is terminat

Re: Inaccurate active session count in JavaMonitor

2009-07-16 Thread Cheong Hee (Gmail)
has set to -WOSessionTimeOut as 90. In fact, when I did a proper log out, the count is reduced in JavaMonitor. Thanks all and will try it out with code given. - Original Message - From: "Mark Ritchie" To: "Chuck Hill" Cc: "Cheong Hee (Gmail)" ; > Sent

Re: Inaccurate active session count in JavaMonitor

2009-07-16 Thread Chuck Hill
Monitor. Thanks all and will try it out with code given. - Original Message - From: "Mark Ritchie" > To: "Chuck Hill" Cc: "Cheong Hee (Gmail)" ; > Sent: Thursday, July 16, 2009 4:56 PM Subject: Re: Inaccurate active session count in JavaMonit

Re: Inaccurate active session count in JavaMonitor

2009-07-16 Thread Jean-Francois Veillette
Hee (Gmail)" ; > Sent: Thursday, July 16, 2009 4:56 PM Subject: Re: Inaccurate active session count in JavaMonitor On 15-Jul-09, at 9:21 AM, Chuck Hill wrote: The memory usage stats are meaningless, but the active session count has been accurate in my experience. I suspect that y

Re: Inaccurate active session count in JavaMonitor

2009-07-16 Thread Cheong Hee (Gmail)
(Gmail)" ; Sent: Thursday, July 16, 2009 4:56 PM Subject: Re: Inaccurate active session count in JavaMonitor On 15-Jul-09, at 9:21 AM, Chuck Hill wrote: The memory usage stats are meaningless, but the active session count has been accurate in my experience. I suspect that your

Re: Inaccurate active session count in JavaMonitor

2009-07-16 Thread Mark Ritchie
On 15-Jul-09, at 9:21 AM, Chuck Hill wrote: The memory usage stats are meaningless, but the active session count has been accurate in my experience. I suspect that your code has bugs in it that are preventing session termination. Get a thread dump and see if you have deadlocked threads.

Re: Inaccurate active session count in JavaMonitor

2009-07-15 Thread Johann Werner
; > To: "Cheong Hee (Gmail)" Cc: Sent: Thursday, July 16, 2009 12:21 AM Subject: Re: Inaccurate active session count in JavaMonitor On Jul 15, 2009, at 2:14 AM, Cheong Hee (Gmail) wrote: I believe most have observed the active session count in JavaMonitor is not accurate when

Re: Inaccurate active session count in JavaMonitor

2009-07-15 Thread Cheong Hee (Gmail)
- From: "Chuck Hill" To: "Cheong Hee (Gmail)" Cc: Sent: Thursday, July 16, 2009 12:21 AM Subject: Re: Inaccurate active session count in JavaMonitor On Jul 15, 2009, at 2:14 AM, Cheong Hee (Gmail) wrote: I believe most have observed the active session count in JavaMonit

Re: Inaccurate active session count in JavaMonitor

2009-07-15 Thread Chuck Hill
On Jul 15, 2009, at 2:14 AM, Cheong Hee (Gmail) wrote: I believe most have observed the active session count in JavaMonitor is not accurate when the session is ended due to time out. The count reduced if the session terminate e.g. user log out. I have not tried it out but it is quite obv

Inaccurate active session count in JavaMonitor

2009-07-15 Thread Cheong Hee (Gmail)
I believe most have observed the active session count in JavaMonitor is not accurate when the session is ended due to time out. The count reduced if the session terminate e.g. user log out. I have not tried it out but it is quite obvious this count may be taken from Application.activeSessionCo