[Beginner's Corner] - Unable to generate heapdump with jmap
by Doug S
Doug S [http://community.jboss.org/people/dfresh4130] created the discussion
"Unable to generate heapdump with jmap"
To view the discussion, visit: http://community.jboss.org/message/580678#580678
--------------------------------------------------------------
Hey All,
I wasn't sure where this topic belongs so I figured I'd try here and let it be moved if it needs to.
I have an environment running JbossAS 4.2.0.GA_CP05_EAP with ATG on top on a virtualized redhat linux OS. I believe we have memory leak issues in the code and am trying to generate a heapdump manually with the jmap command but having issues. I'm running the command jmap -heap:format=b <pid> and let it write the heapdump to my current directory. The command starts up fine and the heapdump starts writing, but it's writing extremely slow. It only writes about 120KB/second and just stops when the heapdump file gets to around 21MB. After that the session where I initiated the command just starts spitting out data like below to the stdout. The exception at the end is what happens when I ctrl-c.
Free chunk in CMS heap, size=64
Free chunk in CMS heap, size=64
Free chunk in CMS heap, size=64
Free chunk in CMS heap, size=64
Free chunk in CMS heap, size=64
Free chunk in CMS heap, size=64
Free chunk in CMS heap, size=64
Free chunk in CMS heap, size=64
Free chunk in CMS heap, size=64
Free chunk in CMS heap, size=544550792
Exception in thread "main" java.lang.RuntimeException: VM.initialize() was not yet called
at sun.jvm.hotspot.runtime.VM.getVM(VM.java:313)
at sun.jvm.hotspot.oops.Oop.alignObjectOffset(Oop.java:104)
at sun.jvm.hotspot.oops.InstanceKlass.getObjectSize(InstanceKlass.java:656)
at sun.jvm.hotspot.memory.CompactibleFreeListSpace.getLiveRegions(CompactibleFreeListSpace.java:123)
at sun.jvm.hotspot.oops.ObjectHeap$LiveRegionsCollector.doSpace(ObjectHeap.java:514)
at sun.jvm.hotspot.memory.ConcurrentMarkSweepGeneration.spaceIterate(ConcurrentMarkSweepGeneration.java:49)
at sun.jvm.hotspot.oops.ObjectHeap.addPermGenLiveRegions(ObjectHeap.java:479)
at sun.jvm.hotspot.oops.ObjectHeap.collectLiveRegions(ObjectHeap.java:559)
at sun.jvm.hotspot.oops.ObjectHeap.iterate(ObjectHeap.java:226)
at sun.jvm.hotspot.utilities.AbstractHeapGraphWriter.write(AbstractHeapGraphWriter.java:34)
at sun.jvm.hotspot.utilities.HeapHprofBinWriter.write(HeapHprofBinWriter.java:399)
at sun.jvm.hotspot.tools.JMap.writeHeapHprofBin(JMap.java:133)
at sun.jvm.hotspot.tools.JMap.writeHeapHprofBin(JMap.java:143)
at sun.jvm.hotspot.tools.JMap.run(JMap.java:71)
at sun.jvm.hotspot.tools.Tool.start(Tool.java:204)
at sun.jvm.hotspot.tools.JMap.main(JMap.java:126)
I'm not sure where to go from this point. I need to generate them on the fly because I'm not running into any OOM scenarios. Below is my java version info as well. Can anyone point me in the right direction? Thanks
$ /tools/jdk1.5.0_16_64bit/bin/java -version
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_16-b02, mixed mode)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/580678#580678]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 3 months
[JBoss Portal] - Re: Removing Dashboard Feature
by Gabriel Muench
Gabriel Muench [http://community.jboss.org/people/Fuchs] created the discussion
"Re: Removing Dashboard Feature"
To view the discussion, visit: http://community.jboss.org/message/579997#579997
--------------------------------------------------------------
Hello,
i would remove the dashboard functionality likewise, but iam using jboss portal 2.7.2.
i used to disable it like Danny Thornton's instruction here: " http://community.jboss.org/message/422607#422607 http://community.jboss.org/message/422607#42260" but nothing happend.
if i use this way by removing data directory, the application will crash with the exception below.
> *exception:*
> javax.servlet.ServletException: java.lang.NullPointerException
> org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:278)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>
>
> *route cause:*
>
> java.lang.NullPointerException
>
> org.jboss.portal.core.impl.model.CustomizationManagerService.getDashboard(CustomizationManagerService.java:282)
>
> org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.injectDashboardNav(PageCustomizerInterceptor.java:254)
>
> org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.invoke(PageCustomizerInterceptor.java:165)
>
> org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
>
> org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
>
> org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:78)
>
> org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
>
> org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
>
> org.jboss.portal.core.aspects.controller.node.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:81)
>
> org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
>
> org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
>
> ... and some more.
A difference to the earlier post is that iam using a customized header. That means iam using different stylesheets for the header like the defaults.
Can anyone help me?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/579997#579997]
Start a new discussion in JBoss Portal at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 3 months
[EJB3] - JBoss AS 6: MDB awaiting topic/queue creation
by Jamie S
Jamie S [http://community.jboss.org/people/jamie.s] created the discussion
"JBoss AS 6: MDB awaiting topic/queue creation"
To view the discussion, visit: http://community.jboss.org/message/580427#580427
--------------------------------------------------------------
Hi, I am trying to piece together a MDB using the @MessageDriven annotation, using stuff from the EJB3 in Action book.
I am attempting to get this going on JBoss AS 6.0.0 Final, default configuration.
I have read that using the MessageDriven annotation, the destination queue will be created if it does not exist.
(eg., http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html/EJB3... http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html/EJB3... )
Here is my annotation:
@MessageDriven(
name="ShippingRequestProcessor",
mappedName="queue/ShippingRequestQueue",
activationConfig = {
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/ShippingRequestQueue"),
})
public class ShippingRequestProcessor implements MessageListener {
@PostConstruct
public void initialize()
{
log.info("Shipper initialized.");
}
public void onMessage(Message message) {
etc...
Using eclipse, I have created that inside an EJB project, inside an EAR project.
(The mappedName anno property is added by eclipse / new Message Driven Bean)
When I deploy, my other EJBs get deployed. However, when the MDB 'starts', I see the following in the log:
16:00:11,482 INFO [org.hornetq.ra.inflow.HornetQActivation] Attempting to reconnect org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@3b59640d destination=queue/ShippingRequestQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=null maxSession=15)
16:00:11,496 INFO [org.hornetq.ra.inflow.HornetQActivation] awaiting topic/queue creation queue/ShippingRequestQueue
These two messages are repeated 10 times, and then nothing happens. initialize() is not called.
The client indicates the queue is not bound.
Using "jms/ShippingRequestQueue" or "jms.queue.ShippingRequestQueue" does not help, either.
What am I missing?
Thanks for any help!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/580427#580427]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 3 months