Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Weblogic file deletion safety

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to clean up weblogic space. I want to know:

-Is it safe to delete the following files:

1- Files residing in the log, tmp or cache folders.

2- Files having the .dat or .lok extension.

-Are there other type of files could I delete?

Please advice.
 
Sami Kobbi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Sami Kobbi wrote:I need to clean up weblogic space. I want to know:

-Is it safe to delete the following files:

1- Files residing in the log, tmp or cache folders.

2- Files having the .dat or .lok extension.

-Are there other type of files could I delete?

Please advice.



I am using weblogic 12c
 
Ranch Hand
Posts: 356
2
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Yes

2. No

 
Bartender
Posts: 1061
19
Mac OS X IntelliJ IDE Oracle Spring VI Editor Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pretty common to do this when needed, but if your after more disk space then why would you not just add extra?  
Possibly best to shutdown managed servers first, delete those folders (log, tmp, cache), and then start up again.
I'll leave the Admin server alone, depends on how critical the environment is (you did not tell us).      

Come to think of it; archiving the logs sounds like a good candidate for a cron job to me.  
 
Saloon Keeper
Posts: 22248
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would be extremely perilous to delete those files while WLS is running.

Also I would not delete ".dat" files unless they are located in a temp or work directory. The ".dat" extension has no fixed meaning and can be used both for temporary/work files and for permanent data files in an unknown (usually binary) format.
 
Sheriff
Posts: 21971
106
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've removed the tmp, log and cache folders often enough. Whatever you do, don't remove the data folder or anything in it. I did once, and that included removing the WebLogic admin account...
 
Put the moon back where you found it! We need it for tides and poetry and stuff. Like this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic