-
Notifications
You must be signed in to change notification settings - Fork 1.3k
CLOUDSTACK-9283: add pid to java arguments in cloudstack-usage.service #1409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
proof that this works in centos 7.2 running cloudstack 4.7.1: in /var/log/cloudstack/usage/usage.log: |
| export UCP=`ls /usr/share/cloudstack-usage/cloud-usage-*.jar /usr/share/cloudstack-usage/lib/*.jar | tr "\\n" ":"`; \ | ||
| export CLASSPATH="$UCP:/etc/cloudstack/usage:/usr/share/java/mysql-connector-java.jar"; \ | ||
| ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp "$CLASSPATH" $JAVA_CLASS' | ||
| ${JAVA_HOME}/bin/java -Dpid=${JAVA_PID} -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp "$CLASSPATH" $JAVA_CLASS' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (did not test by creating packages and installing it though)
|
FYI, this fix also worked for me, Cloudstack 4.8 on Centos7 |
|
LGTM |
|
Two people have confirmed this is working and we also have two LGTM. Is this one ready to merge. I don't think running CI is going to add much value beyond the manual checks people have already done. Do you guys agree? |
|
@swill agree |
|
Tested this in a 4.8 lab. I agree that there is little point in running CI against this, as it's a config change. LGTM. |
CLOUDSTACK-9283: add pid to java arguments in cloudstack-usage.servicecloudstack-usage fails to start throwing Integer exception during PID retrieval, and the service keeps restarting after 10s (as defined in the systemd service definition). Adding the pid to the java arguments in the systemd service definition makes it stop looping in centos7 * pr/1409: CLOUDSTACK-9283: add pid to java arguments in systemd/cloudstack-usage.service Signed-off-by: Will Stevens <williamstevens@gmail.com>
apache#1409 Addresses index out of range exceptions
apache#1409 add pid to java arguments in cloudstack-usage.service
cloudstack-usage fails to start throwing Integer exception during PID retrieval, and the service keeps restarting after 10s (as defined in the systemd service definition).
Adding the pid to the java arguments in the systemd service definition makes it stop looping in centos7