File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jboss tmp files deletion on server restart

 
Rajani Panchumarthy
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Could you tell me abt configurations to be done for deleting the tmp files from (jboss.server.temp.dir) in jboss upon server restart.

Thanks.
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Those are meant to be temp files and hence will be deleted on a restart. Why do you want them to be around after a restart?
 
Rajani Panchumarthy
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using jboss4.2.3 and the files inside the tmp folder are not deleting upon server restart.
the persist even after restart. which configuration file in jboss is responsible for deleting these tmp files?
seems like i am missing any particular configurations related to this.
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oops, i misunderstood your first post.

Rajani Panchumarthy wrote:I am using jboss4.2.3 and the files inside the tmp folder are not deleting upon server restart.
the persist even after restart.

Can you post the exact path to those files and even the name of the file(s) which stay back? By the way, is that causing any trouble? If yes, then please provide more details.
 
Rajani Panchumarthy
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<jboss-server-path>/server/mydeployfolder/tmp is the path of the folder in which i am trying to store few temp files when my application runs.
When the server restarts, I do not want these files anymore.
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the relevant code from your application, which creates those files in the tmp folder?
 
David Coble
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm having the same problem. If I ignore my tmp directory for a week, it becomes simply Brobdingnagian (only about 3 gigs, but tens of millions of files--call it a teacup from Brobdingnag) and can take 40 minutes for my wretched OS (win 7 pro) to delete.

(Yes, I have turned off search indexing on the tmp directory and Yes, I'm hitting shift-delete to bypass the recycle bin.)

I have the same project in a VirtualBox-hosted Ubuntu distro and my results are similar, but not as bad.

It would be nice if the tmp directory were automatically deleted when I start the server. That way, it wouldn't build up to unwieldy sizes. (It would also be nice if I could quickly delete a large directory--but that's another story.)

Is there some setting in jBoss Community plugin that determines whether the tmp directory is deleted when the server is started?
 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We use JBoss 4.3 in production also.

The tmp and work folders do need regular pruning. We have modified the startup scripts to flush them.


WP
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David, which exact version of JBoss AS are you on? JBoss AS 5.x has some known issues around this which were only fixed in later versions.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic