Memory limit for external class-loaded Java class -



Memory limit for external class-loaded Java class -

i loading external class using class-loader. have custom security manager keeps track of class allowed do. works fine. however, monitor memory requirements of class. in particular, set limit on amount of memory class may use. not able edit class in question.

if understand correctly, way invoke separate jvm. how do that? need wrap in process? class need execute not have main method - instantiated 'main' program. thought run program, instantiate external class in question , communicate resulting object (calling selection of methods , passing objects).

thanks time.

you need write short programme has main, can interact e.g. via socket/rmi/jms input+outputstream phone call library you.

java memory jvm classloader

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -