[keycloak-dev] Maven Surefire plugin - memory settings for JDK 8

Bill Burke bburke at redhat.com
Mon Jan 25 15:41:25 EST 2016


We tear down and bring up the server a lot and I have noticed the JVM 
thrashing and slowing down the farther you get into the testrun.  
Expanding the heap solved the problem.

On 1/25/2016 3:15 PM, Tomas Kyjovsky wrote:
>
> ----- Original Message -----
>> Hello,
>>
>> Looking at global settings for Surefire plugin in keycloak/pom.xml:
>>
>>    <artifactId>maven-surefire-plugin</artifactId>
>>    <configuration>
>>      <forkMode>once</forkMode>
>>      <argLine>-Xms512m -Xmx2048m -XX:MaxMetaspaceSize=512m</argLine>
> Sorry, I pasted my local surefire test config by mistake. The original configuration in master is:
>
>       <argLine>-Xms512m -Xmx2048m -XX:MaxPermSize=1024m</argLine>
>
>
>>    </configuration>
>>
>>
>> 1) The heap space settings seems quite high. Is there some reason for 2g
>> heap? If not, can we lower it say to 1g?
>>
>> 2) In JDK 8 permspace was replaced by metaspace which we might want to limit
>> instead.
>>
>>
>> Tomas
>> _______________________________________________
>> keycloak-dev mailing list
>> keycloak-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/keycloak-dev
>>
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com



More information about the keycloak-dev mailing list