範例
protected
void
doGet(
HttpServletRequest
arg0,
HttpServletResponse
arg1) {
Runtime
runtime = Runtime.getRuntime();
runtime.halt(
1
);
}
解決方案
容許 JVM 管理記憶體,並使用聯合排存的執行緒,而非程序。