[rvm-research] Runtime Exception when running JMX
Khaled Z Mahmoud <[email protected]> Fri, 15 Jun 2018 21:28:31 -0400
| Newsgroups | gmane.comp.java.jikes.rvm.devel |
|---|---|
| Message-ID | <CAER=_eX+TouXb7AW5YS3ZU_Rues-ass38jP5ZC1weEB7QA3L9g@mail.gmail.com> |
Hi,
I am trying to use JMX within Jikes.
*All what I am doing* is :
MemoryMXBean memMx = ManagementFactory.getMemoryMXBean();
memMx.getHeapMemoryUsage().getCommitted();
memMx.getHeapMemoryUsage().getUsed();
*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 ??
--
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