Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
af404715
Commit
af404715
authored
May 25, 2016
by
Jason Song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change startup script to remove hardcode version
parent
a66c3b41
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
72 additions
and
8 deletions
+72
-8
startup.sh
apollo-adminservice/src/main/scripts/startup.sh
+18
-2
startup.sh
apollo-assembly/src/main/scripts/startup.sh
+18
-2
startup.sh
apollo-configservice/src/main/scripts/startup.sh
+18
-2
startup.sh
apollo-portal/src/main/scripts/startup.sh
+18
-2
No files found.
apollo-adminservice/src/main/scripts/startup.sh
View file @
af404715
#!/bin/bash
SERVICE_NAME
=
apollo-adminservice
VERSION
=
0.0.1-SNAPSHOT
PATH_TO_JAR
=
$SERVICE_NAME
"-"
$VERSION
".jar"
PATH_TO_JAR
=
$SERVICE_NAME
".jar"
export
JAVA_OPTS
=
"-server -Xms2560m -Xmx2560m -Xss256k -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=384m -XX:NewSize=1024m -XX:MaxNewSize=1024m -XX:SurvivorRatio=22 -XX:+UseParNewGC -XX:ParallelGCThreads=4 -XX:MaxTenuringThreshold=9 -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:+UseCMSInitiatingOccupancyOnly -XX:+ScavengeBeforeFullGC -XX:+UseCMSCompactAtFullCollection -XX:+CMSParallelRemarkEnabled -XX:CMSFullGCsBeforeCompaction=9 -XX:CMSInitiatingOccupancyFraction=60 -XX:+CMSClassUnloadingEnabled -XX:SoftRefLRUPolicyMSPerMB=0 -XX:-ReduceInitialCardMarks -XX:+CMSPermGenSweepingEnabled -XX:CMSInitiatingPermOccupancyFraction=70 -XX:+ExplicitGCInvokesConcurrent -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationConcurrentTime -XX:+PrintHeapAtGC -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Duser.timezone=Asia/Shanghai -Dclient.encoding.override=UTF-8 -Dfile.encoding=UTF-8"
export
JAVA_OPTS
=
"
$JAVA_OPTS
-Xloggc:/opt/logs/100003172/heap_trace.txt -XX:HeapDumpPath=/opt/logs/100003172/HeapDumpOnOutOfMemoryError/"
...
...
@@ -12,8 +11,25 @@ fi
cd
`
dirname
$0
`
/..
for
i
in
`
ls
$SERVICE_NAME
-
*
.jar 2>/dev/null
`
do
if
[[
!
$i
==
*
"-sources.jar"
]]
then
PATH_TO_JAR
=
$i
break
fi
done
if
[[
!
-f
PATH_TO_JAR
&&
-d
current
]]
;
then
cd
current
for
i
in
`
ls
$SERVICE_NAME
-
*
.jar 2>/dev/null
`
do
if
[[
!
$i
==
*
"-sources.jar"
]]
then
PATH_TO_JAR
=
$i
break
fi
done
fi
if
[[
-f
$SERVICE_NAME
".jar"
]]
;
then
...
...
apollo-assembly/src/main/scripts/startup.sh
View file @
af404715
#!/bin/bash
SERVICE_NAME
=
apollo-assembly
VERSION
=
0.0.1-SNAPSHOT
PATH_TO_JAR
=
$SERVICE_NAME
"-"
$VERSION
".jar"
PATH_TO_JAR
=
$SERVICE_NAME
".jar"
export
JAVA_OPTS
=
"-server -Xms4096m -Xmx4096m -Xss256k -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=384m -XX:NewSize=1536m -XX:MaxNewSize=1536m -XX:SurvivorRatio=22 -XX:+UseParNewGC -XX:ParallelGCThreads=4 -XX:MaxTenuringThreshold=9 -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:+UseCMSInitiatingOccupancyOnly -XX:+ScavengeBeforeFullGC -XX:+UseCMSCompactAtFullCollection -XX:+CMSParallelRemarkEnabled -XX:CMSFullGCsBeforeCompaction=9 -XX:CMSInitiatingOccupancyFraction=60 -XX:+CMSClassUnloadingEnabled -XX:SoftRefLRUPolicyMSPerMB=0 -XX:-ReduceInitialCardMarks -XX:+CMSPermGenSweepingEnabled -XX:CMSInitiatingPermOccupancyFraction=70 -XX:+ExplicitGCInvokesConcurrent -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationConcurrentTime -XX:+PrintHeapAtGC -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Duser.timezone=Asia/Shanghai -Dclient.encoding.override=UTF-8 -Dfile.encoding=UTF-8"
export
JAVA_OPTS
=
"
$JAVA_OPTS
-Xloggc:/opt/logs/100003171/heap_trace.txt -XX:HeapDumpPath=/opt/logs/100003171/HeapDumpOnOutOfMemoryError/"
...
...
@@ -12,8 +11,25 @@ fi
cd
`
dirname
$0
`
/..
for
i
in
`
ls
$SERVICE_NAME
-
*
.jar 2>/dev/null
`
do
if
[[
!
$i
==
*
"-sources.jar"
]]
then
PATH_TO_JAR
=
$i
break
fi
done
if
[[
!
-f
PATH_TO_JAR
&&
-d
current
]]
;
then
cd
current
for
i
in
`
ls
$SERVICE_NAME
-
*
.jar 2>/dev/null
`
do
if
[[
!
$i
==
*
"-sources.jar"
]]
then
PATH_TO_JAR
=
$i
break
fi
done
fi
if
[[
-f
$SERVICE_NAME
".jar"
]]
;
then
...
...
apollo-configservice/src/main/scripts/startup.sh
View file @
af404715
#!/bin/bash
SERVICE_NAME
=
apollo-configservice
VERSION
=
0.0.1-SNAPSHOT
PATH_TO_JAR
=
$SERVICE_NAME
"-"
$VERSION
".jar"
PATH_TO_JAR
=
$SERVICE_NAME
".jar"
export
JAVA_OPTS
=
"-server -Xms5632m -Xmx5632m -Xss256k -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=384m -XX:NewSize=2560m -XX:MaxNewSize=2560m -XX:SurvivorRatio=22 -XX:+UseParNewGC -XX:ParallelGCThreads=4 -XX:MaxTenuringThreshold=9 -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:+UseCMSInitiatingOccupancyOnly -XX:+ScavengeBeforeFullGC -XX:+UseCMSCompactAtFullCollection -XX:+CMSParallelRemarkEnabled -XX:CMSFullGCsBeforeCompaction=9 -XX:CMSInitiatingOccupancyFraction=60 -XX:+CMSClassUnloadingEnabled -XX:SoftRefLRUPolicyMSPerMB=0 -XX:-ReduceInitialCardMarks -XX:+CMSPermGenSweepingEnabled -XX:CMSInitiatingPermOccupancyFraction=70 -XX:+ExplicitGCInvokesConcurrent -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationConcurrentTime -XX:+PrintHeapAtGC -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Duser.timezone=Asia/Shanghai -Dclient.encoding.override=UTF-8 -Dfile.encoding=UTF-8"
export
JAVA_OPTS
=
"
$JAVA_OPTS
-Xloggc:/opt/logs/100003171/heap_trace.txt -XX:HeapDumpPath=/opt/logs/100003171/HeapDumpOnOutOfMemoryError/"
...
...
@@ -12,8 +11,25 @@ fi
cd
`
dirname
$0
`
/..
for
i
in
`
ls
$SERVICE_NAME
-
*
.jar 2>/dev/null
`
do
if
[[
!
$i
==
*
"-sources.jar"
]]
then
PATH_TO_JAR
=
$i
break
fi
done
if
[[
!
-f
PATH_TO_JAR
&&
-d
current
]]
;
then
cd
current
for
i
in
`
ls
$SERVICE_NAME
-
*
.jar 2>/dev/null
`
do
if
[[
!
$i
==
*
"-sources.jar"
]]
then
PATH_TO_JAR
=
$i
break
fi
done
fi
if
[[
-f
$SERVICE_NAME
".jar"
]]
;
then
...
...
apollo-portal/src/main/scripts/startup.sh
View file @
af404715
#!/bin/bash
SERVICE_NAME
=
apollo-portal
VERSION
=
0.0.1-SNAPSHOT
PATH_TO_JAR
=
$SERVICE_NAME
"-"
$VERSION
".jar"
PATH_TO_JAR
=
$SERVICE_NAME
".jar"
export
JAVA_OPTS
=
"-server -Xms4096m -Xmx4096m -Xss256k -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=384m -XX:NewSize=1536m -XX:MaxNewSize=1536m -XX:SurvivorRatio=22 -XX:+UseParNewGC -XX:ParallelGCThreads=4 -XX:MaxTenuringThreshold=9 -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:+UseCMSInitiatingOccupancyOnly -XX:+ScavengeBeforeFullGC -XX:+UseCMSCompactAtFullCollection -XX:+CMSParallelRemarkEnabled -XX:CMSFullGCsBeforeCompaction=9 -XX:CMSInitiatingOccupancyFraction=60 -XX:+CMSClassUnloadingEnabled -XX:SoftRefLRUPolicyMSPerMB=0 -XX:-ReduceInitialCardMarks -XX:+CMSPermGenSweepingEnabled -XX:CMSInitiatingPermOccupancyFraction=70 -XX:+ExplicitGCInvokesConcurrent -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationConcurrentTime -XX:+PrintHeapAtGC -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Duser.timezone=Asia/Shanghai -Dclient.encoding.override=UTF-8 -Dfile.encoding=UTF-8"
export
JAVA_OPTS
=
"
$JAVA_OPTS
-Xloggc:/opt/logs/100003173/heap_trace.txt -XX:HeapDumpPath=/opt/logs/100003173/HeapDumpOnOutOfMemoryError/"
...
...
@@ -12,8 +11,25 @@ fi
cd
`
dirname
$0
`
/..
for
i
in
`
ls
$SERVICE_NAME
-
*
.jar 2>/dev/null
`
do
if
[[
!
$i
==
*
"-sources.jar"
]]
then
PATH_TO_JAR
=
$i
break
fi
done
if
[[
!
-f
PATH_TO_JAR
&&
-d
current
]]
;
then
cd
current
for
i
in
`
ls
$SERVICE_NAME
-
*
.jar 2>/dev/null
`
do
if
[[
!
$i
==
*
"-sources.jar"
]]
then
PATH_TO_JAR
=
$i
break
fi
done
fi
if
[[
-f
$SERVICE_NAME
".jar"
]]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment