[
https://issues.apache.org/jira/browse/BROOKLYN-348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15561940#comment-15561940
]
Aled Sage commented on BROOKLYN-348:
------------------------------------
Agreed. I think
{{brooklyn-dist/karaf/apache-brooklyn/target/assembly/bin/setenv}} should have
something like that below (the {{-Dbrooklyn.location.localhost.address}} is to
be more like classic mode - not entirely sure if it's still needed, but we
should be consistent!):
{noformat}
#!/bin/sh
# use default memory settings, if not specified
if [ -z "${JAVA_MAX_MEM}" ] ; then
export JAVA_MAX_MEM="2G"
fi
if [ -z "${JAVA_MAX_PERM_MEM}" ] ; then
export JAVA_MAX_PERM_MEM="256m"
fi
# force resolution of localhost to be loopback, otherwise we hit problems
(should be changed in code)
export EXTRA_JAVA_OPTS="-Dbrooklyn.location.localhost.address=127.0.0.1
${EXTRA_JAVA_OPTS}"
{noformat}
> "java.lang.OutOfMemoryError: PermGen space" with Karaf dist
> -----------------------------------------------------------
>
> Key: BROOKLYN-348
> URL: https://issues.apache.org/jira/browse/BROOKLYN-348
> Project: Brooklyn
> Issue Type: Bug
> Reporter: Svetoslav Neykov
>
> When running a VanillaSoftwareProcess blueprint on the current Brooklyn
> master branch in the Karaf distribution I'm getting
> "java.lang.OutOfMemoryError: PermGen space" errors.
> Increase memory settings in setenv script to
> * JAVA_MAX_MEM="2G"
> * JAVA_MAX_PERM_MEM="256m"
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)