Re: [rvm-research] Runtime Exception when running JMX

Erik Brangs <[email protected]> Sat, 16 Jun 2018 13:29:14 +0200
Newsgroups gmane.comp.java.jikes.rvm.devel
Message-ID <[email protected]>
Hi,

On 16.06.2018 03:28, Khaled Z Mahmoud wrote:
> *I get the below exception:*
> Unexpected exception thrown in timer thread: java.lang.IllegalArgumentException: Maximum value of 0 is below 42733568, the amount committed.
> java.lang.IllegalArgumentException: Maximum value of 0 is below 42733568, the amount committed.
>    at java.lang.management.MemoryUsage.<init>(MemoryUsage.java:141)
>    at org.jikesrvm.mm.mminterface.JMXSupport.getUsage(JMXSupport.java:159)
>    at gnu.java.lang.management.VMMemoryMXBeanImpl.getUsage(VMMemoryMXBeanImpl.java:79)
>    at gnu.java.lang.management.VMMemoryMXBeanImpl.getHeapMemoryUsage(VMMemoryMXBeanImpl.java:28)
>    at gnu.java.lang.management.MemoryMXBeanImpl.getHeapMemoryUsage(MemoryMXBeanImpl.java:149)
>    at org.jikesrvm.scheduler.TimerThread.run(TimerThread.java:97)
> 
> Any ideas ??

this was a bug in the Jikes RVM JMX implementation. It didn't handle discontiguous spaces correctly. I've changed the implementation to set the maximum value to undefined when discontiguous spaces are used. The git commit id of the commit with the fix is c065b7379b1db7c15e75b452b634ee0199ff7ce5 .


Kind regards,

Erik Brangs


> 
> -- 
> Regards,
> Khaled Mahmoud
> 
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> 
> 
> 
> _______________________________________________
> Jikesrvm-researchers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers
> 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jikesrvm-researchers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers