src/JavaUtilities.st
branchjk_new_structure
changeset 1554 fde6a8c6bf17
parent 1499 2d4849f5ade0
child 1570 e6b2fd21ba17
equal deleted inserted replaced
1553:ee3e63c04778 1554:fde6a8c6bf17
    27 	category:'Languages-Java-Utilities'
    27 	category:'Languages-Java-Utilities'
    28 !
    28 !
    29 
    29 
    30 Object subclass:#Tomcat6x
    30 Object subclass:#Tomcat6x
    31 	instanceVariableNames:'bootstrap'
    31 	instanceVariableNames:'bootstrap'
    32 	classVariableNames:''
    32 	classVariableNames:'OldspaceIncreased'
    33 	poolDictionaries:''
    33 	poolDictionaries:''
    34 	privateIn:JavaUtilities
    34 	privateIn:JavaUtilities
    35 !
    35 !
    36 
    36 
    37 Object subclass:#Tomcat7x
    37 Object subclass:#Tomcat7x
    38 	instanceVariableNames:'bootstrap'
    38 	instanceVariableNames:'bootstrap'
    39 	classVariableNames:''
    39 	classVariableNames:'OldspaceIncreased'
    40 	poolDictionaries:''
    40 	poolDictionaries:''
    41 	privateIn:JavaUtilities
    41 	privateIn:JavaUtilities
    42 !
    42 !
    43 
    43 
    44 !JavaUtilities class methodsFor:'documentation'!
    44 !JavaUtilities class methodsFor:'documentation'!
   171     } pairWiseDo:[:key :value|
   171     } pairWiseDo:[:key :value|
   172         java_lang_System perform: #'setProperty(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;'
   172         java_lang_System perform: #'setProperty(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;'
   173             with: (Java as_String: key)
   173             with: (Java as_String: key)
   174             with: (Java as_String: value)
   174             with: (Java as_String: value)
   175     ].
   175     ].
       
   176     OldspaceIncreased ~~ true ifTrue:[
       
   177         ObjectMemory moreOldSpace: 64"MB"*(1024*1024).
       
   178         OldspaceIncreased := true.
       
   179     ].
       
   180 
   176 
   181 
   177     "Created: / 18-04-2012 / 08:08:45 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   182     "Created: / 18-04-2012 / 08:08:45 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   178 ! !
   183 ! !
   179 
   184 
   180 !JavaUtilities::Tomcat6x methodsFor:'start/stop'!
   185 !JavaUtilities::Tomcat6x methodsFor:'start/stop'!