[ca-certificates-java] 31/58: Limit the memory used by java to 64M when updating the certificates
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Wed May 31 13:13:17 UTC 2017
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository ca-certificates-java.
commit ce9f1f957da961a340eea6702e4afdac81f9380d
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Mon Mar 24 09:09:57 2014 +0000
Limit the memory used by java to 64M when updating the certificates
---
debian/changelog | 2 ++
debian/jks-keystore.hook.in | 2 +-
debian/postinst.in | 4 ++--
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 5e4e966..deafef4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ ca-certificates-java (20130816) UNRELEASED; urgency=medium
* Team upload.
* Fixed a test failure caused by the removal of the CAcert.org root
certificate from the ca-certificates package (Closes: #741755)
+ * Limit the memory used by java to 64M when updating the certificates
+ (Closes: 576453)
* d/control: Standards-Version updated to 3.9.5 (no changes)
* Switch to debhelper level 9
diff --git a/debian/jks-keystore.hook.in b/debian/jks-keystore.hook.in
index 1ea6df2..bc4a7f9 100644
--- a/debian/jks-keystore.hook.in
+++ b/debian/jks-keystore.hook.in
@@ -79,7 +79,7 @@ do_cleanup()
fi
}
-if java -jar $JAR -storepass "$storepass"; then
+if java -Xmx64m -jar $JAR -storepass "$storepass"; then
do_cleanup
else
do_cleanup
diff --git a/debian/postinst.in b/debian/postinst.in
index 4e897a1..d799ccb 100644
--- a/debian/postinst.in
+++ b/debian/postinst.in
@@ -50,7 +50,7 @@ first_install()
# Forcibly remove diginotar cert (LP: #920758)
if [ -n "$FIXOLD" ]; then
echo -e "-diginotar_root_ca\n-diginotar_root_ca_pem" | \
- java -jar $JAR -storepass "$storepass"
+ java -Xmx64m -jar $JAR -storepass "$storepass"
fi
find /etc/ssl/certs -name \*.pem | \
@@ -63,7 +63,7 @@ first_install()
fi
echo "+${filename}"
done | \
- java -jar $JAR -storepass "$storepass"
+ java -Xmx64m -jar $JAR -storepass "$storepass"
echo "done."
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/ca-certificates-java.git
More information about the pkg-java-commits
mailing list