Pre-allocate more oldspace when starting Tomcat jk_new_structure
authorvranyj1
Wed, 25 Jul 2012 08:41:31 +0000
branchjk_new_structure
changeset 1554 fde6a8c6bf17
parent 1553 ee3e63c04778
child 1555 456389e1894a
Pre-allocate more oldspace when starting Tomcat
src/JavaUtilities.st
--- a/src/JavaUtilities.st	Wed Jul 25 07:10:22 2012 +0000
+++ b/src/JavaUtilities.st	Wed Jul 25 08:41:31 2012 +0000
@@ -29,14 +29,14 @@
 
 Object subclass:#Tomcat6x
 	instanceVariableNames:'bootstrap'
-	classVariableNames:''
+	classVariableNames:'OldspaceIncreased'
 	poolDictionaries:''
 	privateIn:JavaUtilities
 !
 
 Object subclass:#Tomcat7x
 	instanceVariableNames:'bootstrap'
-	classVariableNames:''
+	classVariableNames:'OldspaceIncreased'
 	poolDictionaries:''
 	privateIn:JavaUtilities
 !
@@ -173,6 +173,11 @@
             with: (Java as_String: key)
             with: (Java as_String: value)
     ].
+    OldspaceIncreased ~~ true ifTrue:[
+        ObjectMemory moreOldSpace: 64"MB"*(1024*1024).
+        OldspaceIncreased := true.
+    ].
+
 
     "Created: / 18-04-2012 / 08:08:45 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !