saif-hmk / javamelody

Automatically exported from code.google.com/p/javamelody
0 stars 0 forks source link

exception after deploy ear #347

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, i'm using javamelody 1.47.
I created an ear, 3.0, and added to pom.xml the description to javamelody core 
only.

Deploying it in a jboss 7.1.1 (standalone standard profile) under windows 7 it 
works, and i can see javamelody stats.

When we move the ear on the production system, it's an hpux parisc 11v2, jboss 
7.1.1 (standalone standard profile), right after the ear deploy, i'm getting 
this exception (see below).

Can you help me on this?

20:35:18,548 WARN  [net.bull.javamelody] (MSC service thread 1-11) exception 
while collecting data: java.io.IOException: Map failed
    at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:761) [rt.jar:1.6.0.08]
    at net.bull.javamelody.RrdNioBackend.mapFile(RrdNioBackend.java:94) [javamelody-core-1.46.0.jar:1.46.0]
    at net.bull.javamelody.RrdNioBackend.setLength(RrdNioBackend.java:118) [javamelody-core-1.46.0.jar:1.46.0]
    at org.jrobin.core.RrdDb.<init>(RrdDb.java:166) [jrobin-1.5.9.jar:1.5.9]
    at org.jrobin.core.RrdDb.<init>(RrdDb.java:124) [jrobin-1.5.9.jar:1.5.9]
    at org.jrobin.core.RrdDbPool.requestRrdDb(RrdDbPool.java:135) [jrobin-1.5.9.jar:1.5.9]
    at net.bull.javamelody.JRobin.init(JRobin.java:161) [javamelody-core-1.46.0.jar:1.46.0]
    at net.bull.javamelody.JRobin.<init>(JRobin.java:84) [javamelody-core-1.46.0.jar:1.46.0]
    at net.bull.javamelody.JRobin.createInstance(JRobin.java:118) [javamelody-core-1.46.0.jar:1.46.0]
    at net.bull.javamelody.Collector.getCounterJRobin(Collector.java:783) [javamelody-core-1.46.0.jar:1.46.0]
    at net.bull.javamelody.Collector.collectJRobinValues(Collector.java:449) [javamelody-core-1.46.0.jar:1.46.0]
    at net.bull.javamelody.Collector.collectJavaInformations(Collector.java:358) [javamelody-core-1.46.0.jar:1.46.0]
    at net.bull.javamelody.Collector.collect(Collector.java:297) [javamelody-core-1.46.0.jar:1.46.0]
    at net.bull.javamelody.Collector.collectWithoutErrors(Collector.java:284) [javamelody-core-1.46.0.jar:1.46.0]
    at net.bull.javamelody.Collector.collectLocalContextWithoutErrors(Collector.java:274) [javamelody-core-1.46.0.jar:1.46.0]
    at net.bull.javamelody.FilterContext.initCollect(FilterContext.java:230) [javamelody-core-1.46.0.jar:1.46.0]
    at net.bull.javamelody.FilterContext.<init>(FilterContext.java:101) [javamelody-core-1.46.0.jar:1.46.0]
    at net.bull.javamelody.MonitoringFilter.init(MonitoringFilter.java:111) [javamelody-core-1.46.0.jar:1.46.0]
    at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:447) [jbossweb-7.0.13.Final.jar:]
    at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3269) [jbossweb-7.0.13.Final.jar:]
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3865) [jbossweb-7.0.13.Final.jar:]
    at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0.08]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0.08]
    at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0.08]
Caused by: java.lang.OutOfMemoryError: Map failed
    at sun.nio.ch.FileChannelImpl.map0(Native Method) [rt.jar:1.6.0.08]
    at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:758) [rt.jar:1.6.0.08]
    ... 26 more

Original issue reported on code.google.com by iziope...@gmail.com on 2 Oct 2013 at 6:44

GoogleCodeExporter commented 9 years ago
My startup params
 -server -XX:+TieredCompilation -Xms2048m -Xmx2048m -XX:MaxPermSize=756m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml

Original comment by iziope...@gmail.com on 2 Oct 2013 at 6:56

GoogleCodeExporter commented 9 years ago
This seems like an issue in the JVM or in the OS.

An explanation which makes sense is at:
http://wiki.apache.org/cassandra/FAQ#memlock

Original comment by evernat@free.fr on 6 Oct 2013 at 9:13

GoogleCodeExporter commented 9 years ago
Any news? Can we close this issue?

Original comment by evernat@free.fr on 23 Oct 2013 at 10:10

GoogleCodeExporter commented 9 years ago
Hi, sorry for the delay.
Unfortunately, we cannot modify OS params or jboss launch params on the 
production server and test the solution proposed.
Actually, we deployed a version of our software without javamelody.

You can close the issue for now.
Thanks anyway!

Original comment by iziope...@gmail.com on 24 Oct 2013 at 11:47

GoogleCodeExporter commented 9 years ago
ok

Original comment by evernat@free.fr on 24 Oct 2013 at 4:15