[
https://issues.apache.org/struts/browse/STR-3031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40807
]
Himanshu goyal commented on STR-3031:
-------------------------------------
Hi
PLz suggest me can this task of cleaning up files for Aborted Uploads be
done using Session Listener who could possibly catch those events . as some
Mr Ryan from a forum suggested this to me..
and
as if i do the cleanup Regularly then also there is a possibility that the
process attempts to delete the files in Use...
So plz suggest me if SessionLIstener Could be Useful..
i have also written one cron Jon for the Purpose to delete the files.. but
still i need a better solution such that only if there are any aborted
uploads then only the Process should be Invoked.. as in the production
environment ,, the Application is Quite bulky and will impact some
performance. if i add some scheduled Cleanup.. and even i m doubtful abt the
Frequency of such files generated...
as sometimes it maked the Webserver uncomfortable saying the "OUT OF MEMORY
" Error..
Thanks & Regards
Himanshu Goyal
--
Himanshu Goyal
Trainee System Engineer
Office Nos. 403 & 404, 4th Floor,
Wiekfield IT City Infotech, Nagar Road,
Pune-411014 , India
Mobile : +91-9219631256
Phone (O): 91-020-39846100 Extn: 586
email : [EMAIL PROTECTED]
> Cleaning of Temp files Created During Aborted Requests and Aborted Uploads .
> ----------------------------------------------------------------------------
>
> Key: STR-3031
> URL: https://issues.apache.org/struts/browse/STR-3031
> Project: Struts 1
> Issue Type: Temp
> Components: Core
> Affects Versions: 1.2.4
> Environment: Tomcat on linux, with Struts
> Reporter: Himanshu goyal
> Priority: Critical
>
> Hi Martin,
> > could u please help me abt my problem with Temporary files created during
> > aborted uploads. and other concerns..
> > like many times the temp files created internally for different purpose
> > remains there if the request is aborted.
> > i just wanted to know how to catch those Aborted Requests so that we can do
> > the cleanup , ad due to this my Temp folder for the web-server is getting
> > very heavy and is
> > impacting performance.
> >
> > Can it be implemented using Session listener or some other way..
> > kindly request you to tell me the way or any sample code demonstrating
> > this..
> > my requirement is just to cleanup the temporarily files for aborted
> > requests.
> >
> >
> > i have implemented the File upload such that the uploaded file first gets
> > loaded locally for virus scanning.. and then gets uploaded to the
> > destination .. but the problem occurs when someone
> > aborts the request such that the temp files created for virus scanning
> > remains there.. and sometimes it maked the temp folder so much bulky that
> > it impacts performance.
> >
> any help wud be Really Thankful...
> >
> > Thanks & Regards
> > Himanshu Goyal
> > System Analyst
> > Nihilent Technology pvt Ltd.[ CMMI-5 Certified Company ]
> > email: [EMAIL PROTECTED]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.