ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anovi...@apache.org
Subject ignite git commit: IGNITE-843 Added JVM_OPTS to console agent.
Date Thu, 21 Jan 2016 03:47:33 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-843-rc2 02838a0d6 -> 9d9f604cb


IGNITE-843 Added JVM_OPTS to console agent.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/9d9f604c
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/9d9f604c
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/9d9f604c

Branch: refs/heads/ignite-843-rc2
Commit: 9d9f604cb4ce3158e8c88a5f32d12fa3c9f8fefc
Parents: 02838a0
Author: Andrey <anovikov@gridgain.com>
Authored: Thu Jan 21 10:48:00 2016 +0700
Committer: Andrey <anovikov@gridgain.com>
Committed: Thu Jan 21 10:48:00 2016 +0700

----------------------------------------------------------------------
 modules/control-center-agent/bin/ignite-web-agent.bat |  9 ++++++++-
 modules/control-center-agent/bin/ignite-web-agent.sh  | 11 ++++++++++-
 2 files changed, 18 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/9d9f604c/modules/control-center-agent/bin/ignite-web-agent.bat
----------------------------------------------------------------------
diff --git a/modules/control-center-agent/bin/ignite-web-agent.bat b/modules/control-center-agent/bin/ignite-web-agent.bat
index 796ddf9..8be3066 100644
--- a/modules/control-center-agent/bin/ignite-web-agent.bat
+++ b/modules/control-center-agent/bin/ignite-web-agent.bat
@@ -15,4 +15,11 @@
 :: limitations under the License.
 ::
 
-java -jar ignite-web-agent-${version}.jar %*
+::
+:: JVM options. See http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp for more
details.
+::
+:: ADD YOUR/CHANGE ADDITIONAL OPTIONS HERE
+::
+if "%JVM_OPTS%" == "" set JVM_OPTS=-Xms1g -Xmx1g -server -XX:+AggressiveOpts -XX:MaxPermSize=256m
+
+java %JVM_OPTS% -jar ignite-web-agent-${version}.jar %*

http://git-wip-us.apache.org/repos/asf/ignite/blob/9d9f604c/modules/control-center-agent/bin/ignite-web-agent.sh
----------------------------------------------------------------------
diff --git a/modules/control-center-agent/bin/ignite-web-agent.sh b/modules/control-center-agent/bin/ignite-web-agent.sh
index a7bae1f..eb7530f 100644
--- a/modules/control-center-agent/bin/ignite-web-agent.sh
+++ b/modules/control-center-agent/bin/ignite-web-agent.sh
@@ -33,4 +33,13 @@ DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
 
 cd $DIR
 
-java -jar ignite-web-agent-${version}.jar "$@"
+#
+# JVM options. See http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp for more
details.
+#
+# ADD YOUR/CHANGE ADDITIONAL OPTIONS HERE
+#
+if [ -z "$JVM_OPTS" ] ; then
+    JVM_OPTS="-Xms1g -Xmx1g -server -XX:+AggressiveOpts -XX:MaxPermSize=256m"
+fi
+
+java ${JVM_OPTS} -jar ignite-web-agent-${version}.jar "$@"


Mime
View raw message