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
9b6c51bb
Commit
9b6c51bb
authored
Jun 13, 2017
by
张乐
Committed by
GitHub
Jun 13, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #639 from nobodyiam/optimize-gc
Optimize gc
parents
32f5fc8b
8a48afdd
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
startup.sh
apollo-adminservice/src/main/scripts/startup.sh
+1
-1
application.properties
apollo-common/src/main/resources/application.properties
+1
-1
InstanceConfigAuditUtil.java
...rk/apollo/configservice/util/InstanceConfigAuditUtil.java
+3
-3
startup.sh
apollo-configservice/src/main/scripts/startup.sh
+1
-1
startup.sh
apollo-portal/src/main/scripts/startup.sh
+1
-1
No files found.
apollo-adminservice/src/main/scripts/startup.sh
View file @
9b6c51bb
...
...
@@ -6,7 +6,7 @@ LOG_DIR=/opt/logs/100003172
SERVER_PORT
=
8090
## Adjust memory settings if necessary
#export JAVA_OPTS="-Xms2560m -Xmx2560m -Xss256k -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=384m -XX:NewSize=1
024m -XX:MaxNewSize=1024m -XX:SurvivorRatio=22
"
#export JAVA_OPTS="-Xms2560m -Xmx2560m -Xss256k -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=384m -XX:NewSize=1
536m -XX:MaxNewSize=1536m -XX:SurvivorRatio=8
"
## Only uncomment the following when you are using server jvm
#export JAVA_OPTS="$JAVA_OPTS -server -XX:-ReduceInitialCardMarks"
...
...
apollo-common/src/main/resources/application.properties
View file @
9b6c51bb
...
...
@@ -13,6 +13,6 @@ spring.jpa.hibernate.globally_quoted_identifiers=true
spring.jpa.properties.hibernate.globally_quoted_identifiers
=
true
# Tomcat configuration
server.tomcat.accept-count
=
1024
server.tomcat.accept-count
=
5000
# Increase tomcat header size for longer GET query parameter, should be n * 1024
server.tomcat.maxHttpHeaderSize
=
10240
apollo-configservice/src/main/java/com/ctrip/framework/apollo/configservice/util/InstanceConfigAuditUtil.java
View file @
9b6c51bb
...
...
@@ -33,9 +33,9 @@ import java.util.concurrent.atomic.AtomicBoolean;
*/
@Service
public
class
InstanceConfigAuditUtil
implements
InitializingBean
{
private
static
final
int
INSTANCE_CONFIG_AUDIT_MAX_SIZE
=
2
000
;
private
static
final
int
INSTANCE_CACHE_MAX_SIZE
=
1
0000
;
private
static
final
int
INSTANCE_CONFIG_CACHE_MAX_SIZE
=
1
0000
;
private
static
final
int
INSTANCE_CONFIG_AUDIT_MAX_SIZE
=
10
000
;
private
static
final
int
INSTANCE_CACHE_MAX_SIZE
=
5
0000
;
private
static
final
int
INSTANCE_CONFIG_CACHE_MAX_SIZE
=
5
0000
;
private
static
final
long
OFFER_TIME_LAST_MODIFIED_TIME_THRESHOLD_IN_MILLI
=
TimeUnit
.
MINUTES
.
toMillis
(
10
);
//10 minutes
private
static
final
Joiner
STRING_JOINER
=
Joiner
.
on
(
ConfigConsts
.
CLUSTER_NAMESPACE_SEPARATOR
);
private
final
ExecutorService
auditExecutorService
;
...
...
apollo-configservice/src/main/scripts/startup.sh
View file @
9b6c51bb
...
...
@@ -6,7 +6,7 @@ LOG_DIR=/opt/logs/100003171
SERVER_PORT
=
8080
## Adjust memory settings if necessary
#export JAVA_OPTS="-Xms6144m -Xmx6144m -Xss256k -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=384m -XX:NewSize=4096m -XX:MaxNewSize=4096m -XX:SurvivorRatio=
1
8"
#export JAVA_OPTS="-Xms6144m -Xmx6144m -Xss256k -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=384m -XX:NewSize=4096m -XX:MaxNewSize=4096m -XX:SurvivorRatio=8"
## Only uncomment the following when you are using server jvm
#export JAVA_OPTS="$JAVA_OPTS -server -XX:-ReduceInitialCardMarks"
...
...
apollo-portal/src/main/scripts/startup.sh
View file @
9b6c51bb
...
...
@@ -6,7 +6,7 @@ LOG_DIR=/opt/logs/100003173
SERVER_PORT
=
8080
## Adjust memory settings if necessary
#export JAVA_OPTS="-Xms
4096m -Xmx4096m -Xss256k -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=384m -XX:NewSize=1536m -XX:MaxNewSize=1536m -XX:SurvivorRatio=22
"
#export JAVA_OPTS="-Xms
2560m -Xmx2560m -Xss256k -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=384m -XX:NewSize=1536m -XX:MaxNewSize=1536m -XX:SurvivorRatio=8
"
## Only uncomment the following when you are using server jvm
#export JAVA_OPTS="$JAVA_OPTS -server -XX:-ReduceInitialCardMarks"
...
...
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