[
https://issues.apache.org/jira/browse/ARTEMIS-2596?focusedWorklogId=375347&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-375347
]
ASF GitHub Bot logged work on ARTEMIS-2596:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 22/Jan/20 01:04
Start Date: 22/Jan/20 01:04
Worklog Time Spent: 10m
Work Description: gaohoward commented on pull request #2938: ARTEMIS-2596
(kill -9) AMQ causes tmp web dir space usage to increase
URL: https://github.com/apache/activemq-artemis/pull/2938#discussion_r369324880
##########
File path:
artemis-web/src/main/java/org/apache/activemq/artemis/component/WebServerComponent.java
##########
@@ -226,6 +227,7 @@ public void start() throws Exception {
if (isStarted()) {
return;
}
+ cleanupTemporaryFilesIfAnyBeforeStart();
Review comment:
It eventually calls WebTmpCleaner but before that we need to figure out
where the tmp dir is. (because before the web server start there is no tmpdir
in each web context. The tmpdir only
exists in the web context after the webapp (war) is deployed).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 375347)
Time Spent: 50m (was: 40m)
> (kill -9) AMQ causes tmp web dir space usage to increase
> --------------------------------------------------------
>
> Key: ARTEMIS-2596
> URL: https://issues.apache.org/jira/browse/ARTEMIS-2596
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Components: Web Console
> Affects Versions: 2.10.1
> Reporter: Howard Gao
> Assignee: Howard Gao
> Priority: Major
> Fix For: 2.12.0
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> If you kill the server without invoking a normal shutdown, tmp files are not
> cleaned out. This leaves old webapp folders lingering until a normal
> shutdown.
> {code}
> ./tmp/jetty-0.0.0.0-8443-redhat-branding.war-_redhat-branding-any-3285121346946007361.dir
> ./tmp/jetty-0.0.0.0-8443-console.war-_console-any-4977922188149081743.dir/
> ./tmp/jetty-0.0.0.0-8443-artemis-plugin.war-_artemis-plugin-any-4959919418401315172.dir
> {code}
> In a failover test environment that repeatedly kills the server, this causes
> disk space usage issues.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)