Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004889 [Resin] minor always 12-02-11 12:08 02-21-12 16:55
Reporter cowan View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 4.0.24
Summary 0004889: Static calls to Alarm create Threads
Description The AlarmClock created in Alarm as a static class declaration calls ThreadPool.getThreadPool which spawns new threads. It seems unnecessary to spawn threads unless they are really needed, particularly simply upon class initialization.

This causes issues running on Google App Engine, because their sandbox does not permit thread creation.

This results in GoogleQuercusServlet failing to serve PHP because PageManager calls Alarm.isActive.

WARNING: Nested in java.lang.ExceptionInInitializerError: access denied (java.lang.RuntimePermission modifyThreadGroup)
    at java.lang.SecurityManager.checkPermission(
    at java.lang.ThreadGroup.checkAccess(
    at java.lang.Thread.init(
    at java.lang.Thread.<init>(
    at com.caucho.env.thread.ThreadLauncher.startWorkerThread(
    at com.caucho.env.thread.AbstractTaskWorker.wake(
    at com.caucho.env.thread.AbstractThreadLauncher.update(
    at com.caucho.env.thread.ThreadLauncher.setPriorityIdleMin(
    at com.caucho.env.thread.ThreadLauncher.<init>(
    at com.caucho.env.thread.ThreadPool.<init>(
    at com.caucho.env.thread.ThreadPool.<init>(
    at com.caucho.env.thread.ThreadPool.getThreadPool(
    at com.caucho.util.AlarmClock.<init>(
    at com.caucho.util.Alarm.<clinit>(
Additional Information Rep by M. Frank
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
12-02-11 12:08 cowan New Issue
02-21-12 16:55 ferg Assigned To  => ferg
02-21-12 16:55 ferg Status new => closed
02-21-12 16:55 ferg Resolution open => fixed
02-21-12 16:55 ferg Fixed in Version  => 4.0.26

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
27 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker