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

Khaled Z Mahmoud <[email protected]> Sat, 16 Jun 2018 13:26:41 -0400
Newsgroups gmane.comp.java.jikes.rvm.devel
Message-ID <CAER=_eX9xF=S0UWFvmM-_4mQpVLnyp_2CVVJRPh4hLvhrZ03yQ@mail.gmail.com>
Hi,

Thanks. That now works and the exception is gone.
I realized that JMX operations in Jikes are very slow. Sometimes they take
45 or 50 milliseconds and sometimes more.

Are there any synchronized variables shared with the Jikes run-time that
could potentially slowdown jikes if I read JMX frequently ?
I have experience 10 fold increase in application execution time when
reading JMX information.




Regards,
Khaed Mahmoud

On Sat, Jun 16, 2018 at 7:29 AM, Erik Brangs <[email protected]> wrote:

> 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
>



-- 
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