Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Commit

Permalink
Fix runtime heap dump location
Browse files Browse the repository at this point in the history
  • Loading branch information
kaviththiranga committed Feb 20, 2017
1 parent 336dece commit f209f12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/distribution/ballerina-home/bin/composer
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ status=$START_EXIT_STATUS
$JAVACMD \
-Xms256m -Xmx1024m \
-XX:+HeapDumpOnOutOfMemoryError \
-XX:HeapDumpPath="$BAL_COMPOSER_HOME/logs/heap-dump-tool.hprof" \
-XX:HeapDumpPath="$BAL_COMPOSER_HOME/heap-dump-tool.hprof" \
$JAVA_OPTS \
-classpath ./resources/composer/services/workspace-service-*.jar \
-Djava.io.tmpdir="$BAL_COMPOSER_HOME/tmp" \
Expand Down
2 changes: 1 addition & 1 deletion modules/distribution/ballerina-home/bin/composer.bat
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ rem set CARBON_CLASSPATH=.\bin\bootstrap;%CARBON_CLASSPATH%

set JAVA_ENDORSED=".\bin\bootstrap\endorsed";"%JAVA_HOME%\jre\lib\endorsed";"%JAVA_HOME%\lib\endorsed"

set CMD_LINE_ARGS=-Xbootclasspath/a:%CARBON_XBOOTCLASSPATH% -Xms256m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="%CARBON_HOME%\logs\heap-dump.hprof" -Dcom.sun.management.jmxremote -classpath %CARBON_CLASSPATH% %JAVA_OPTS% -Djava.endorsed.dirs=%JAVA_ENDORSED% -Dballerina.home="%BALLERINA_HOME%" -Dbal.composer.home="%CARBON_HOME%" -Djava.command="%JAVA_HOME%\bin\java" -Djava.opts="%JAVA_OPTS%" -Djava.io.tmpdir="%CARBON_HOME%\tmp" -Dcarbon.classpath=%CARBON_CLASSPATH% -Dfile.encoding=UTF8 -Dcomposer.port=9091 -DenableCloud=false -Dworkspace.port=8289 -Dtransports.netty.conf=./resources/composer/services/netty-transports.yml
set CMD_LINE_ARGS=-Xbootclasspath/a:%CARBON_XBOOTCLASSPATH% -Xms256m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="%CARBON_HOME%\heap-dump.hprof" -Dcom.sun.management.jmxremote -classpath %CARBON_CLASSPATH% %JAVA_OPTS% -Djava.endorsed.dirs=%JAVA_ENDORSED% -Dballerina.home="%BALLERINA_HOME%" -Dbal.composer.home="%CARBON_HOME%" -Djava.command="%JAVA_HOME%\bin\java" -Djava.opts="%JAVA_OPTS%" -Djava.io.tmpdir="%CARBON_HOME%\tmp" -Dcarbon.classpath=%CARBON_CLASSPATH% -Dfile.encoding=UTF8 -Dcomposer.port=9091 -DenableCloud=false -Dworkspace.port=8289 -Dtransports.netty.conf=./resources/composer/services/netty-transports.yml

:runJava
"%JAVA_HOME%\bin\java" %CMD_LINE_ARGS% org.ballerinalang.composer.service.workspace.app.WorkspaceServiceRunner %CMD%
Expand Down

0 comments on commit f209f12

Please sign in to comment.