[
https://issues.jboss.org/browse/JBRULES-3313?page=com.atlassian.jira.plug...
]
Mark Proctor commented on JBRULES-3313:
---------------------------------------
This is necessary due to bugs on windows, where files are not able to be deleted because
GC keeps the handles open.
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