Project: talendesb
Issue TESB-3765: PermGen space error when deploying STS+rentacar client in the same Karaf container when using 64-bit Java
When deploying both STS and the rentacar client in the same Karaf container we see a PermGen space error or a Segmentation Violation caused by PermGen space problems. The following options set in the karaf start script trun/trun.bat seem to solve the problem: set DEFAULT_JAVA_OPTS=-server -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled ... together with set JAVA_PERM_MEM=256M, set JAVA_MAX_PERM_MEM=512M 1) Investigate whether -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled have negative side effects, if not use them as default, if yes make their use easier (flag in the beginning of the script described in the documentation). 2) Regarding JAVA_PERM_MEM=256M, JAVA_MAX_PERM_MEM: Investigate whether there is a possibility to detect automatically in the script whether we use 64-bit Java and adapt the default parameters accordingly. At least the parameters for 64-bit Java should be documented. (hint: we have to check whether "java -version" contains the string "64-bit").
Story points: 3