NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
denbo
Joined: 01 Jan 1970 Posts: 35
|
Posted: Wed Mar 25, 2009 3:36 pm Post subject: Memory profiling of Tomcat does not show all instances |
|
|
I'm running a memory profiling session on a Tomcat 6.0.18.
There is a session scoped bean in my application which I create for each user - there should be one instance per running session. However, when I look at the corresponding entry in the Live Profiling Results window I see only one instance no matter how many concurrent sessions there are. I have made sure I really have simultaneous sessions (disabled Cookies, monitor session creation/destruction). I also see only 1 Catalina session instance:
org.apache.catalina.session.StandardSession / 88 B (0%) / 1 (0%) / 1 / 174.0 / 1
(that's classname / live bytes / Live Objects / Allocated Objects / Avg. Age / Generations)
Why do I get these results? I would have expected 3 live objects for my 3 running sessions.
Thank you in advance!! |
|
| Back to top |
|
 |
Tomas Hurka Posted via mailing list.
|
Posted: Thu Mar 26, 2009 2:56 pm Post subject: Memory profiling of Tomcat does not show all instances |
|
|
On 25 Mar 2009, at 16:37, denbo wrote:
| Quote: | I'm running a memory profiling session on a Tomcat 6.0.18.
There is a session scoped bean in my application which I create for
each user - there should be one instance per running session.
However, when I look at the corresponding entry in the Live
Profiling Results window I see only one instance no matter how many
concurrent sessions there are. I have made sure I really have
simultaneous sessions (disabled Cookies, monitor session creation/
destruction). I also see only 1 Catalina session instance:
org.apache.catalina.session.StandardSession / 88 B (0%) / 1 (0%) /
1 / 174.0 / 1
(that's classname / live bytes / Live Objects / Allocated Objects /
Avg. Age / Generations)
Why do I get these results? I would have expected 3 live objects for
my 3 running sessions.
|
One explanation can be that Memory profiling by default tracks every
10th object allocation. You can change it when you invoke Profile ->
Profile Main Project. Set it to 1 instead of default 10.
Bye,
--
Tomas Hurka <mailto:address-removed>
NetBeans Profiler http://profiler.netbeans.org
VisualVM http://visualvm.dev.java.net
Software Engineer, Developer Platforms Group
Sun Microsystems, Praha Czech Republic
---------------------------------------------------------------------
To unsubscribe, e-mail: address-removed
For additional commands, e-mail: address-removed |
|
| Back to top |
|
 |
denbo
Joined: 01 Jan 1970 Posts: 35
|
Posted: Thu Mar 26, 2009 3:30 pm Post subject: |
|
|
Hey Tomas,
you found the solution. I indeed had left the setting on 10 allocations.
Thank you very much!
Dennis |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|