-
1. Re: Queue Consumers stopped working
jbertram Jun 13, 2012 12:01 PM (in response to newway)Get a thread dump from the stalled instance of AS 7.2 and attach it here.
-
2. Re: Queue Consumers stopped working
newway Jun 26, 2012 1:45 PM (in response to jbertram)Hi,
I am trying to figure out how to obtain a thread dump from a jboss that is already running without loosing it's state.
i run jboss as a service on win 2008R2 using the tanuki service wrapper -but i got nowhere so far.
tried jconsole or visual VM - but they are not finding jboss
any ideas on what to do?
- I decided to start the server again in console mode where i can get the thread dump.
you can look at this specific question as an academic exercise if you have time for it
thanks,
Noa
-
3. Re: Queue Consumers stopped working
sergiu_pienar Jun 26, 2012 2:03 PM (in response to newway)Try the MemoryAnalyzerTool, maybe it helps : http://www.eclipse.org/mat/
-
4. Re: Queue Consumers stopped working
jbertram Jun 26, 2012 2:18 PM (in response to newway)1 of 1 people found this helpfulHow about jstack (http://docs.oracle.com/javase/1.5.0/docs/tooldocs/share/jstack.html)? It should be included with your JDK.
-
5. Re: Queue Consumers stopped working
newway Jun 26, 2012 3:00 PM (in response to jbertram)Looks like jstack should have worked if I still had the process running.
the thing is that when I used the jps command it looked like it doesn't recognize any java process except for itself, same for the visualVM
I am attaching the thread dump, although it happened now a lot faster than before - so I am not sure that it's the same problem
* forgot to say one thing - I am now runnig on jboss 7.1.1 and not 7.2 - the only diff from 7.1.1 is that i merged the fix that enables to change the thread pool min and max size
-
6. Re: Queue Consumers stopped working
jbertram Jun 26, 2012 3:50 PM (in response to newway)Your thread dump is clean as far as I can tell. Can you attach your standalone*.xml for the instance in question?
Also, do you happen to have a set of steps I could run to reproduce the issue? It sounds like you see it pretty consistently.
-
7. Re: Queue Consumers stopped working
newway Jun 27, 2012 4:20 AM (in response to jbertram)Looks like while I was trying to figure out how to produce the thread dump I stumbled over the real problem.
I thought that I was configuring Jboss to use maximum heap size of 1.5G - turns out that the Tanuki service wrapper was overriding my definitions using :
# Initial Java Heap Size (in MB)
wrapper.java.initmemory=64
# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=512
after commenting out those definitions I rerun my scenario and now the system is running over half a day without errors.
so I believe the problem was that it reached the max memory, the thing that puzzles me is why I didn't see errors that are related to this problem, but I might have been too aggressive in the logging configurations I had