As far as I know, this is not solved yet, and it's a real sore point for Java's ability to serve as a runtime for generic hosted services. There's the JSR 121 "Application Isolation API Specification", but it only addresses isolation of object spaces, and does not provide any means of resource control (i.e. you can not specify either a memory or a CPU quota on the newly created isolates).
Attila. On 2008.06.17., at 0:25, Norris Boyd wrote: > * I don't know of any better way to enforce a memory allocation quota. > It's possible to imagine tracking allocations as they occur from > scripts, but given that the actual allocations can occur in Java code > called by the scripts it seems like this would be difficult at best to > build and maintain. Your idea of extending the JVM is an intriguing > possibility. I have a vague memory of some proposal for the JVM > enforcing quotas, but can't find anything with a brief search. Anyone > on this list know more? _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
