[jboss-jira] [JBoss JIRA] (JBRULES-3313) FileManager does several explicit System.gc(); calls which does a stop-the-world garbage collect halting all threads on the entire system

Geoffrey De Smet (Created) (JIRA) jira-events at lists.jboss.org
Wed Dec 14 04:26:09 EST 2011


FileManager does several explicit System.gc(); calls which does a stop-the-world garbage collect halting all threads on the entire system
-----------------------------------------------------------------------------------------------------------------------------------------

                 Key: JBRULES-3313
                 URL: https://issues.jboss.org/browse/JBRULES-3313
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
            Reporter: Geoffrey De Smet
            Assignee: Mark Proctor
            Priority: Critical


Performance tuning presentations state that System.gc() is bad as it stops all threads in the JVM for a long garbage collect, which kills the load a server can handle.

FileManager does it on 2 lines:
{code}
            while ( !file.delete() && count++ < 5 ) {
                System.gc();
                ...
            }
{code}

Findbugs notices it too.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list