cancel
Showing results for 
Search instead for 
Did you mean: 

Excessive junk files getting created on the server

Former Member
0 Kudos

hi,

I have created a Web application using Webdynpro.

It uses models and RFCs to enter/fetch values into the R/3 tables.

<b>The problem i am facing is that, due to some settings, around 15GB of Temporary files and log files are getting created on the server harddisk.</b>

I think the server is creating Backup files of the tables, but is creating a new backup of the entire table;everytime a new row gets added to it

The server has ECC6.0 on it.

Is there a way to change the settings at the Server end or at the NWDS end, so that so much junk data doesnt get created??

Message was edited by:

Hanoz Tarapore

Accepted Solutions (1)

Accepted Solutions (1)

abhijeet_mukkawar
Active Contributor
0 Kudos

hi hanoz,

File file = new File("temp.txt");

String server_path = file.getAbsolutePath();

use the above code, it will get you the absolute path. This path can be modified according your need(using substring() and concat() functions) so as to reach to the particular folder.

regards,

abhijeet

Answers (1)

Answers (1)

abhijeet_mukkawar
Active Contributor
0 Kudos

hi ,

if you know the extension of the files created (ofcourse they must be of some common source) then use following code

File fl = new File(file_path);

File fl_d;

String str_file[] = fl.list();

for(int i = 0; i<str_file.length;i++)

{

if((file_path"
"
str_file<i>).substring((file_path"
"
str_file<i>).lastIndexOf(".")1,(file_path"
"+str_file<i>).length()).equalsIgnoreCase("xml"))

{ fl_d = new File(file_path"
"
str_file<i>);

fl_d.delete();

}

}

here you should know the path of the folder where the files are getting created.

get that path in variable 'file_path' and follow the code.

hope it helps.

regards,

Abhijeet

Message was edited by:

abhijeet mukkawar