Setting JMX attribute on VM as command line paramater
        Posted  
        
            by 117440226733149663383
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by 117440226733149663383
        
        
        
        Published on 2010-03-18T13:49:53Z
        Indexed on 
            2010/03/18
            13:51 UTC
        
        
        Read the original article
        Hit count: 421
        
I've done some searching, but can't seem to find a way to do this.
We'd like to proactively monitor our permgen space via JMX. It seems the best way to do this is through the UsageThreshold attribute on the "PS Perm Gen" MemoryPool. By default, this is set to 0. Is there a way to specify this, or any JMX attribute, as a -D parameter to VM so this can be set automatically at startup? Or is there another mechanism to load JMX attributes automatically?
Thanks.
© Stack Overflow or respective owner