[jboss-dev] tmp/ delete
Ales Justin
ales.justin at gmail.com
Mon Dec 13 08:56:13 EST 2010
Hmmm, the tmp/ dir actually gets properly cleaned up at shutdown.
After boot:
...
24K tmp//vfs/vfsinmemoryf1bdac672661640a
6.2M tmp//vfs
6.2M tmp/
After shutdown:
Skywalker:default alesj$ du -h tmp/
0B tmp//aopdynclasses
0B tmp//deploy
0B tmp//vfs/automountb9cbfa289cf8ff71
0B tmp//vfs/automounte49dfcb2551ae11c
0B tmp//vfs/shrinkwrap-a64c8a721bc8e1b1
0B tmp//vfs/shrinkwrap-d4c2314266154a4b
0B tmp//vfs/vfsinmemoryaff1fe101cee6da1
0B tmp//vfs/vfsinmemoryf1bdac672661640a
0B tmp//vfs
0B tmp/
Nicklas is asking if we have "any windows-hosts doing hudson jobs that would show the behavior?"
* https://issues.jboss.org/browse/JBAS-8718
On Dec 10, 2010, at 4:43 PM, Dimitris Andreadis wrote:
> New temporary files would be created at next start up.
>
> I'm not sure if there was code that removes stuff upon creation of tmp/deploy, just in case
> files where locked at shutdown or something.
>
> Ales Justin wrote:
>> This is delete of tmp/deploy/ -- which is I guess where most of the "fat" was.
>>
>> What happened (at next startup) if this code wasn't executed?
>> e.g. due to some unexpected failure at shutdown
>>
>> I guess new temps were created, leaving those dups to lay around till next clean shutdown.
>> (e.g. we didn't link those old temps with existing deployment?)
>>
>> On Dec 10, 2010, at 4:22 PM, Dimitris Andreadis wrote:
>>
>>> In 4.x it was done at shutdown here:
>>> http://anonsvn.jboss.org/repos/jbossas/branches/Branch_4_2/system/src/main/org/jboss/system/server/ServerImpl.java
>>> ...
>>> // Cleanup tmp/deploy dir
>>> log.debug("Deleting server tmp/deploy directory");
>>> File tmp = config.getServerTempDir();
>>> File tmpDeploy = new File(tmp, "deploy");
>>> Files.delete(tmpDeploy);
>>>
>>> Not sure about 5/6.
>>>
>>> Ales Justin wrote:
>>>> So that I'm not searching for a needle in the haystack,
>>>> who could tell me how exactly we used to do this (https://issues.jboss.org/browse/JBAS-8718) in the past.
>>>> (as it looks like we're missing that functionality atm in AS6 ...)
>>>>
>>>> 1) Where did we create tmp/ dir?
>>>> Or was this done per each custom sub-dir via File::makedirs?
>>>>
>>>> 2) Where and when did we delete it?
>>>> * at startup -- simply deleting old tmp/; which is probably more bullet proof than at shutdown
>>>> * at shutdown
>>>> * ...
>>>>
>>>> Thanks for any help / tip.
>>>>
>>>>
>>>> _______________________________________________
>>>> jboss-development mailing list
>>>> jboss-development at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/jboss-development
>>> _______________________________________________
>>> jboss-development mailing list
>>> jboss-development at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/jboss-development
>>
>>
>> _______________________________________________
>> jboss-development mailing list
>> jboss-development at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/jboss-development
> _______________________________________________
> jboss-development mailing list
> jboss-development at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-development
More information about the jboss-development
mailing list