S
Sameer
Dear All,
We have one server (FTP). One drive of which stores scanned documents.
Users usually upload documents (.JPG files). Currently that drive is
of about 27 GB containing more that 1,50,000 files.
We have to keep data of 45 days only and have to remove other files
regularly. Currently we use the AWK like utility for the same. It has
some limitations and it do not accept command line parameters and
therefore can not be scheduled as a program.
Now i have written one Java program for the same.
The java file as a Google document:
http://docs.google.com/View?docid=dfvj6k7q_3x4pr28gf
This program wont help. I am running the program from the server.
But it just got hanged after
ile = new File(dirPath);
fileArray = file.listFiles(this);
Not even able to create the fileArray object....
Do increasing memory of server will help or how to change the program?
I don't think multi-threading like concepts will help as the file
number is big.
What should i do to make it work or any other suggstions to carry out
the server files deletion task.
Please help.
Thanks in advance.
-Sameer Shinde
We have one server (FTP). One drive of which stores scanned documents.
Users usually upload documents (.JPG files). Currently that drive is
of about 27 GB containing more that 1,50,000 files.
We have to keep data of 45 days only and have to remove other files
regularly. Currently we use the AWK like utility for the same. It has
some limitations and it do not accept command line parameters and
therefore can not be scheduled as a program.
Now i have written one Java program for the same.
The java file as a Google document:
http://docs.google.com/View?docid=dfvj6k7q_3x4pr28gf
This program wont help. I am running the program from the server.
But it just got hanged after
ile = new File(dirPath);
fileArray = file.listFiles(this);
Not even able to create the fileArray object....
Do increasing memory of server will help or how to change the program?
I don't think multi-threading like concepts will help as the file
number is big.
What should i do to make it work or any other suggstions to carry out
the server files deletion task.
Please help.
Thanks in advance.
-Sameer Shinde