Author SHA1 Message Date
Tobias Schöneberg afdc48d2d7 41-docker - Allow us to obtain java heap-dumps in case of an OutOfMemoryError
* add MaxRAMFraction so java uses the docker image's memory completely (and not just 1/4)

https://github.com/metasfresh/metasfresh-docker/issues/41
2019-01-23 10:44:48 +01:00
Tobias Schöneberg b8af7dd9e8 41-docker - Allow us to obtain java heap-dumps in case of an OutOfMemoryError
* add dedicated volumes for app and webapi
* bonus: derive memory settings from docker instead of setting them statically

https://github.com/metasfresh/metasfresh-docker/issues/41
2019-01-22 13:17:13 +01:00
metas-dev f22e037dab update new release 5.87 2019-01-18 14:42:28 +01:00
metas-dev 63c17874c1 update new release 5.86 2019-01-11 15:27:03 +01:00
metas-dev 814c8d7dbb update new release 5.85 2018-12-21 15:58:52 +01:00
metas-dev a6a4fd5762 update new release 5.84 2018-12-14 17:00:45 +01:00
metas-dev a2ca410c26 update new release 5.83 2018-12-07 15:15:13 +01:00
metas-dev 2edb764fdb update new release 5.82 2018-11-30 15:35:21 +01:00
metas-dev 1a4923b633 update new release 5.81 2018-11-23 16:17:36 +01:00
metas-dev fff1c09030 update new release 5.80 2018-11-09 16:20:12 +01:00
metas-dev 0510102574 update new release 5.79 2018-11-02 17:03:27 +01:00
metas-dev 882411ae5f update new release 5.78 2018-10-26 16:24:11 +02:00
metas-dev 408a04e29b update new release 5.77 2018-10-22 12:01:27 +02:00
metas-dev 3dd1697d40 update new release 5.76 2018-09-28 16:10:31 +02:00
metas-dev 6e56f8d7d8 update new release 5.75 2018-09-21 17:09:32 +02:00
metas-dev e9de51993f update new release 5.74 2018-09-14 16:25:10 +02:00
metas-dev 9dc81bc1f9 update new release 5.73 2018-09-07 16:55:41 +02:00
metas-dev d182e97b3c update new release 5.72 2018-08-31 14:36:23 +02:00
metas-dev 3f4b435da2 update new release 5.71 2018-08-24 13:06:31 +02:00
metas-dev a6f4af6f16 update new release 5.70 2018-08-17 14:50:06 +02:00
metas-dev b0bb0fba8b update new release 5.69 2018-08-10 16:36:37 +02:00
metas-dev a722d90b2a update new release 5.68 2018-08-03 17:22:47 +02:00
metas-dev 829585ee95 update new release 5.67 2018-07-27 17:04:50 +02:00
metas-dev deda79ea32 update new release 5.66 2018-07-20 15:15:43 +02:00
Julian Bischof 4b68f2c550 add issue_template.md
For streamlining of adding new issues
2018-07-19 16:14:21 +02:00
metas-dev b91973272c update new release 5.65 2018-07-13 14:37:14 +02:00
metas-dev 7c5de78cbd update new release 5.64 2018-07-06 15:53:09 +02:00
metas-dev 1b279110ab update new release 5.63 2018-06-29 14:58:24 +02:00
metas-dev 2ba9062ff7 update new release 5.62 2018-06-22 13:09:17 +02:00
24 changed files with 207 additions and 210 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
FROM metasfresh/metasfresh-app:5.61
FROM metasfresh/metasfresh-app:5.87
COPY sources/configs/* /opt/metasfresh/
COPY sources/start_app.sh /opt/metasfresh/
+1 -1
View File
@@ -1,4 +1,4 @@
FROM metasfresh/metasfresh-db:5.61
FROM metasfresh/metasfresh-db:5.87
RUN localedef -i de_DE -c -f UTF-8 -A /usr/share/locale/locale.alias de_DE.UTF-8
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
+1 -1
View File
@@ -12,7 +12,7 @@ RUN apt -y install netcat \
&& apt -y autoclean
RUN mkdir -p /opt/metasfresh
RUN curl https://repo.metasfresh.com/content/repositories/mvn-release-releases/de/metas/dist/metasfresh-dist-dist/5.61.2-688+release/metasfresh-dist-dist-5.61.2-688+release-dist.tar.gz \
RUN curl https://repo.metasfresh.com/content/repositories/mvn-release-releases/de/metas/dist/metasfresh-dist-dist/5.87.2-890+release/metasfresh-dist-dist-5.87.2-890+release-dist.tar.gz \
| tar -xzC /opt/metasfresh/
COPY sources/configs/* /opt/metasfresh/
+8 -1
View File
@@ -6,6 +6,7 @@ set -u
DB_HOST=db
APP_HOST=app
set_properties()
{
local prop_file="$1"
@@ -53,9 +54,15 @@ run_metasfresh()
# info: https://docs.oracle.com/cd/E26362_01/E40761/html/known-bugs-issues.html
# https://stackoverflow.com/a/19379760
# thx to
# https://blog.csanchez.org/2017/05/31/running-a-jvm-in-a-container-without-getting-killed/
MEMORY_PARAMS="-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MaxRAMFraction=1"
cd /opt/metasfresh/ && java \
-Dsun.misc.URLClassPath.disableJarChecking=true \
-Xmx1024M -XX:MaxPermSize=512M -XX:+HeapDumpOnOutOfMemoryError \
$MEMORY_PARAMS \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/metasfresh/heapdump \
-DPropertyFile=/opt/metasfresh/metasfresh.properties \
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8788 \
-Dcom.sun.net.ssl.enableECC=false \
@@ -1,93 +0,0 @@
-- Thx to https://medium.com/contactually-engineering/postgres-at-scale-query-performance-and-autovacuuming-for-large-tables-d7e8ad40b16b
ALTER SYSTEM SET autovacuum_vacuum_scale_factor = 0.05;
ALTER SYSTEM SET autovacuum_analyze_scale_factor = 0.05;
-- Thx to https://blog.2ndquadrant.com/autovacuum-tuning-basics/
ALTER TABLE ad_archive SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE ad_archive SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE c_referenceno_doc SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE c_referenceno_doc SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE ad_attachment SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE ad_attachment SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE ad_pinstance_para SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE ad_pinstance_para SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE ad_pinstance SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE ad_pinstance SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE ad_pinstance_log SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE ad_pinstance_log SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE c_subscriptionprogress SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE c_subscriptionprogress SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE c_invoice_line_alloc SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE c_invoice_line_alloc SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE c_invoiceline SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE c_invoiceline SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE c_doc_outbound_log_line SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE c_doc_outbound_log_line SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE c_referenceno SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE c_referenceno SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE c_doc_responsible SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE c_doc_responsible SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE c_invoice SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE c_invoice SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE c_printing_queue SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE c_printing_queue SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE c_invoicetax SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE c_invoicetax SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE c_doc_outbound_log SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE c_doc_outbound_log SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE c_payment SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE c_payment SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE c_allocationhdr SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE c_allocationhdr SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE c_allocationline SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE c_allocationline SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE c_contract_term_alloc SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE c_contract_term_alloc SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE c_olcand SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE c_olcand SET (autovacuum_vacuum_threshold = 10000);
-- not so big, but still need it, i think because a lot of changes are going on in there
ALTER TABLE public.t_query_selection SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE public.t_query_selection SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE t_lock SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE t_lock SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE m_shipmentschedule_recompute SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE m_shipmentschedule_recompute SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE c_invoice_candidate_recompute SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE c_invoice_candidate_recompute SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE ESR_ImportLine SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE ESR_ImportLine SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE ESR_Import SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE ESR_Import SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE c_flatrate_term SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE c_flatrate_term SET (autovacuum_vacuum_threshold = 10000);
ALTER TABLE c_invoice_candidate SET (autovacuum_vacuum_scale_factor = 0);
ALTER TABLE c_invoice_candidate SET (autovacuum_vacuum_threshold = 10000);
+2
View File
@@ -18,6 +18,7 @@ app:
restart: always
volumes:
- ./volumes/app/log:/opt/metasfresh/log:rw
- ./volumes/app/heapdump:/opt/metasfresh/heapdump:rw
- /etc/localtime:/etc/localtime:ro
environment:
- METASFRESH_HOME=/opt/metasfresh
@@ -29,6 +30,7 @@ webapi:
restart: always
volumes:
- ./volumes/webapi/log:/opt/metasfresh-webui-api/log:rw
- ./volumes/webapi/heapdump:/opt/metasfresh-webui-api/heapdump:rw
- /etc/localtime:/etc/localtime:ro
webui:
build: webui
+2
View File
@@ -22,6 +22,7 @@ services:
restart: always
volumes:
- ./volumes/app/log:/opt/metasfresh/log:rw
- ./volumes/app/heapdump:/opt/metasfresh/heapdump:rw
- /etc/localtime:/etc/localtime:ro
environment:
- METASFRESH_HOME=/opt/metasfresh
@@ -33,6 +34,7 @@ services:
restart: always
volumes:
- ./volumes/webapi/log:/opt/metasfresh-webui-api/log:rw
- ./volumes/webapi/heapdump:/opt/metasfresh-webui-api/heapdump:rw
- /etc/localtime:/etc/localtime:ro
webui:
+1 -1
View File
@@ -14,7 +14,7 @@ RUN apt -y install netcat \
COPY sources/configs/local_settings.properties /root/
RUN mkdir -p /opt/metasfresh-webui-api/metasfresh-webui-api \
&& mkdir -p /opt/metasfresh-webui-api/log
RUN curl https://repo.metasfresh.com/content/repositories/mvn-release/de/metas/ui/web/metasfresh-webui-api/5.61.2-490+release/metasfresh-webui-api-5.61.2-490+release.jar \
RUN curl https://repo.metasfresh.com/content/repositories/mvn-release/de/metas/ui/web/metasfresh-webui-api/5.87.2-651+release/metasfresh-webui-api-5.87.2-651+release.jar \
--output /opt/metasfresh-webui-api/metasfresh-webui-api.jar \
&& chmod 750 /opt/metasfresh-webui-api/metasfresh-webui-api.jar
+20 -1
View File
@@ -1,10 +1,23 @@
#!/bin/bash
set -e
#set -x
DB_HOST=db
APP_HOST=app
echo_variable_values()
{
echo "*************************************************************"
echo "Display the variable values we run with"
echo "*************************************************************"
echo "Note: all these variables can be set using the -e parameter."
echo ""
echo "DB_HOST=${DB_HOST}"
echo "APP_HOST=${APP_HOST}"
echo ""
}
set_properties()
{
local prop_file="$1"
@@ -22,10 +35,15 @@ wait_dbms()
done
}
# thx to
# https://blog.csanchez.org/2017/05/31/running-a-jvm-in-a-container-without-getting-killed/
MEMORY_PARAMS="-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MaxRAMFraction=1"
run_metasfresh()
{
cd /opt/metasfresh-webui-api/ && java -Dsun.misc.URLClassPath.disableJarChecking=true \
-Xmx1024M -XX:MaxPermSize=512M -XX:+HeapDumpOnOutOfMemoryError \
$MEMORY_PARAMS \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/metasfresh-webui-api/heapdump \
-DPropertyFile=/opt/metasfresh-webui-api/metasfresh.properties \
-Dcom.sun.management.jmxremote.port=1618 \
-Dcom.sun.management.jmxremote.authenticate=false \
@@ -34,6 +52,7 @@ run_metasfresh()
-jar metasfresh-webui-api.jar
}
echo_variable_values
set_properties /opt/metasfresh-webui-api/metasfresh.properties
set_properties /opt/metasfresh-webui-api/local_settings.properties
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -2
View File
@@ -12,6 +12,5 @@
<body>
<div id="root"></div>
<script src="/config.js"></script>
<script src="/plugins.js"></script>
<script type="text/javascript" src="/bundle-f1f6ae58b5179825e749-git-fba6751.js"></script></body>
<script type="text/javascript" src="/bundle-813c2d8e3fcc7aa2f32e-git-62af4b2.js"></script></body>
</html>
+5 -5
View File
@@ -1,10 +1,10 @@
{
"build": {
"releaseVersion": "5.61.2-180+release",
"jenkinsBuildUrl": "https://jenkins.metasfresh.com/job/metasfresh-webui-frontend/job/release/180/",
"jenkinsBuildNo": "180",
"releaseVersion": "5.87.2-276+release",
"jenkinsBuildUrl": "https://jenkins.metasfresh.com/job/metasfresh-webui-frontend/job/release/276/",
"jenkinsBuildNo": "276",
"jenkinsJobName": "metasfresh-webui-frontend/release",
"jenkinsBuildTag": "jenkins-metasfresh-webui-frontend-release-180"
"gitSHA1": "fba675159418004e2c23ec1a06a9a5e3b0f8daca"
"jenkinsBuildTag": "jenkins-metasfresh-webui-frontend-release-276"
"gitSHA1": "62af4b2015514c40d17ea446a353537cf63a473b"
}
}
@@ -0,0 +1,2 @@
<!-- Icon comes from fontawesome.com under CC 4.0 license : https://fontawesome.com/license/free -->
<svg aria-hidden="true" data-prefix="fas" data-icon="barcode" class="svg-inline--fa fa-barcode fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#9aafbd" d="M0 448V64h18v384H0zm26.857-.273V64H36v383.727h-9.143zm27.143 0V64h8.857v383.727H54zm44.857 0V64h8.857v383.727h-8.857zm36 0V64h17.714v383.727h-17.714zm44.857 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm35.715 0V64h18v383.727h-18zm44.857 0V64h18v383.727h-18zm35.999 0V64h18.001v383.727h-18.001zm36.001 0V64h18.001v383.727h-18.001zm26.857 0V64h18v383.727h-18zm45.143 0V64h26.857v383.727h-26.857zm35.714 0V64h9.143v383.727H476zm18 .273V64h18v384h-18z"></path></svg>

After

Width:  |  Height:  |  Size: 801 B

@@ -0,0 +1,2 @@
<!-- Icon comes from fontawesome.com under CC 4.0 license : https://fontawesome.com/license/free -->
<svg aria-hidden="true" data-prefix="fas" data-icon="qrcode" class="svg-inline--fa fa-qrcode fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="#9aafbd" d="M0 224h192V32H0v192zM64 96h64v64H64V96zm192-64v192h192V32H256zm128 128h-64V96h64v64zM0 480h192V288H0v192zm64-128h64v64H64v-64zm352-64h32v128h-96v-32h-32v96h-64V288h96v32h64v-32zm0 160h32v32h-32v-32zm-64 0h32v32h-32v-32z"></path></svg>

After

Width:  |  Height:  |  Size: 529 B

@@ -0,0 +1,2 @@
<!-- Icon comes from fontawesome.com under CC 4.0 license : https://fontawesome.com/license/free -->
<svg aria-hidden="true" data-prefix="fas" data-icon="spinner" class="svg-inline--fa fa-spinner fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#9aafbd" d="M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z"></path></svg>

After

Width:  |  Height:  |  Size: 890 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 932 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 B

+7
View File
@@ -0,0 +1,7 @@
### Is this a bug or feature request?
### What is the current behavior?
### Which are the steps to reproduce?
### What is the expected or desired behavior?
+1 -1
View File
@@ -1,4 +1,4 @@
FROM metasfresh/metasfresh-webapi:5.61
FROM metasfresh/metasfresh-webapi:5.87
COPY sources/configs/* /opt/metasfresh-webui-api/
COPY sources/start_webapi.sh /opt/metasfresh-webui-api/
+1 -1
View File
@@ -1,4 +1,4 @@
FROM metasfresh/metasfresh-webui:5.61
FROM metasfresh/metasfresh-webui:5.87
COPY sources/configs/config.js /opt/metasfresh-webui-frontend/dist/