Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
datav_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
廖旭伟
datav_platform
Commits
8628f414
Commit
8628f414
authored
Nov 18, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加巴中经开区的配置文件
parent
f947e245
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
15 deletions
+27
-15
datav-manager/src/main/bin/start.sh
datav-manager/src/main/bin/start.sh
+16
-15
pom.xml
pom.xml
+11
-0
No files found.
datav-manager/src/main/bin/start.sh
View file @
8628f414
#!/bin/sh
PORT
=
"@profiles.server.port@"
DEBUG
=
@profiles.server.debug@
BASEDIR
=
`
dirname
$0
`
/..
BASEDIR
=
`
(
cd
"
$BASEDIR
"
;
pwd
)
`
PROJECT_NAME
=
"@project.artifactId@"
;
MAIN_CLASS
=
"
$PROJECT_NAME
-@project.version@.jar"
;
LOG_PATH
=
"@profiles.log.path@/
$PROJECT_NAME
"
GC_PATH
=
$LOG_PATH
/PROJECT_NAME
"-gc.log"
HS_ERR_PATH
=
$LOG_PATH
/PROJECT_NAME
"-hs_err.log"
HEAP_DUMP_PATH
=
$LOG_PATH
/PROJECT_NAME
"-heap_dump.hprof"
GC_PATH
=
$LOG_PATH
/
$
PROJECT_NAME
"-gc.log"
HS_ERR_PATH
=
$LOG_PATH
/
$
PROJECT_NAME
"-hs_err.log"
HEAP_DUMP_PATH
=
$LOG_PATH
/
$
PROJECT_NAME
"-heap_dump.hprof"
TEMP_PATH
=
$LOG_PATH
/temp/
SUCCESS
=
0
FAIL
=
9
...
...
@@ -32,8 +33,9 @@ if [ -z "$JAVACMD" ] ; then
JAVACMD
=
"
$JAVA_HOME
/bin/java"
fi
else
JAVACMD
=
`
which java
`
echo
"Error: JAVA_HOME is
$JAVACMD
"
JAVACMD
=
`
which java
>
/dev/null 2>&1
`
echo
"Error: JAVA_HOME is not defined correctly."
exit
$ERR_NO_JAVA
fi
fi
...
...
@@ -44,7 +46,7 @@ fi
if
[
-e
"
$BASEDIR
"
]
then
JAVA_OPTS
=
"-Xms
512M -Xmx1024
M -Xss256K -XX:+UseAdaptiveSizePolicy -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:GCTimeRatio=39 -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:
$GC_PATH
-XX:+HeapDumpOnOutOfMemoryError -XX:ErrorFile=
$HS_ERR_PATH
-XX:HeapDumpPath=
$HEAP_DUMP_PATH
"
JAVA_OPTS
=
"-Xms
1024M -Xmx2048
M -Xss256K -XX:+UseAdaptiveSizePolicy -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:GCTimeRatio=39 -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:
$GC_PATH
-XX:+HeapDumpOnOutOfMemoryError -XX:ErrorFile=
$HS_ERR_PATH
-XX:HeapDumpPath=
$HEAP_DUMP_PATH
"
fi
CLASSPATH
=
$CLASSPATH_PREFIX
:
...
...
@@ -55,12 +57,11 @@ cd "$BASEDIR/boot";
echo
"starting application
$PROJECT_NAME
......"
exec
"
$JAVACMD
"
$JAVA_OPTS
\
$EXTRA_JVM_ARGUMENTS
\
$DEBUG
\
-Dapp
.name
=
"
$PROJECT_NAME
"
\
-Dapp
.port
=
"
$PORT
"
\
-Dbasedir
=
"
$BASEDIR
"
\
-Djava
.io.tmpdir
=
$TEMP_PATH
\
-Dloader
.path
=
"file://
$BASEDIR
/conf,file://
$BASEDIR
/lib"
\
-agentlib
:jdwp
=
transport
=
dt_socket,server
=
y,suspend
=
n,address
=
15502
\
-jar
$MAIN_CLASS
\
>
/dev/null &
...
...
pom.xml
View file @
8628f414
...
...
@@ -81,6 +81,17 @@
<useDefaultDelimiters>
false
</useDefaultDelimiters>
</configuration>
</plugin>
<!-- 用于编译的plugin -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<configuration>
<source>
${java.version}
</source>
<target>
${java.version}
</target>
<encoding>
${project.build.sourceEncoding}
</encoding>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
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