Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
IllegalArgumentException thrown from MemoryInformations
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Anthony Richir  
View profile  
 More options Feb 22, 1:44 am
From: Anthony Richir <anthony.ric...@gmail.com>
Date: Tue, 21 Feb 2012 22:44:19 -0800 (PST)
Local: Wed, Feb 22 2012 1:44 am
Subject: IllegalArgumentException thrown from MemoryInformations
Hi all,

I started using JavaMelody on my project, a Wicket webapp.
The first tests in local were pretty successful, I'm developping using
Jetty and I had access to the monitoring page of JavaMelody.
So, I packaged my application and deployed it in my local Websphere
(on a Windows machine), again big success, it was working just fine.
I decided to give it a try in our development environment and deployed
the same EAR file I used in my local WAS in the DEV one (on a Linux
machine).
And there I get this nasty exception :

[2/22/12 7:29:10:965 CET] 00000030 webapp        E
com.ibm.ws.webcontainer.webapp.WebApp logError SRVE0293E: [Servlet
Error]-[used argument cannot be less than 0]:
java.lang.IllegalArgumentException: used argument cannot be less than
0
        at java.lang.management.MemoryUsage.<init>(MemoryUsage.java:
95)
        at
com.ibm.lang.management.MemoryMXBeanImpl.getNonHeapMemoryUsageImpl(Native
Method)
        at
com.ibm.lang.management.MemoryMXBeanImpl.getNonHeapMemoryUsage(MemoryMXBean Impl.java:
143)
        at
net.bull.javamelody.MemoryInformations.<init>(MemoryInformations.java:
69)
        at
net.bull.javamelody.JavaInformations.<init>(JavaInformations.java:137)
        at
net.bull.javamelody.MonitoringFilter.doMonitoring(MonitoringFilter.java:
285)
       at
net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:
122)
        at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanc eWrapper.java:
188)
        at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain .java:
116)
        at
com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChai n.java:
77)
        at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterMan ager.java:
908)
        at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilt erManager.java:
997)
        at
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.invokeFilters(D efaultExtensionProcessor.java:
1062)
        at
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(D efaultExtensionProcessor.java:
982)
        at
com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3935)
        at
com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:
276)
        at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:
931)
        at
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:
1583)
        at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:
186)
        at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(H ttpInboundLink.java:
452)
        at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpI nboundLink.java:
511)
        at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInb oundLink.java:
305)
        at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink. java:
276)
        at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscrimi nators(NewConnectionInitialReadCallback.java:
214)
        at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewCo nnectionInitialReadCallback.java:
113)
        at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioRe adCompletionListener.java:
165)
        at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.jav a:
217)
        at com.ibm.io.async.AsyncChannelFuture
$1.run(AsyncChannelFuture.java:205)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604)

I'm not quite sure why I get a different behaviour between 2 WAS
installations, maybe because of there is a difference between the two,
one being a developer edition and the other an entreprise one.

Does anyone experience the same sort of issue before ?

Cheers,

Anthony


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vernat Emeric  
View profile  
 More options Feb 22, 3:57 pm
From: Vernat Emeric <ever...@free.fr>
Date: Wed, 22 Feb 2012 21:57:43 +0100
Local: Wed, Feb 22 2012 3:57 pm
Subject: Re: [javamelody] IllegalArgumentException thrown from MemoryInformations
Hi Anthony,

The code called at this line is just:
ManagementFactory.getMemoryMXBean().getNonHeapMemoryUsage()
This is purely a JVM call which does not depend on javamelody.

And when calling this method, the IBM JVM throws an exception which
tries to explain that the used memory cannot be less than 0.
Indeed, if memory is used it may not be negative.

It is an IBM bug and it has been seen before, but not using javamelody:
https://jira.atlassian.com/browse/JRA-19389
This ticket says that it seems to appear under rare circumstances.
So if you reproduce the issue again, I suggest to call your IBM support.

bye,
Emeric

Le 22/02/2012 07:44, Anthony Richir a crit :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »