Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » PHP BIRT - Delete Session Folders(Advise Deleting Session Folders)
PHP BIRT - Delete Session Folders [message #756187] Fri, 11 November 2011 12:24 Go to next message
karvesh ghunsam is currently offline karvesh ghunsamFriend
Messages: 95
Registered: July 2011
Member
Dear All,

The integration of php with BIRT entails the creation of session folders containing the rptdocument files.

I have created a batch file with the simple code:

forfiles -p "C:\what\ever" -s -m *.* -d <number of days> -c "cmd /c del @path"


that will delete all session folders older than any specific number of days

However, i am having some trouble to do it because my Tomcat server is running all time and the process seems to lock the rptdocument files in the session folders.

Any advise how to overcome that problem? The issue is that the session folders are cropping rapidly on the server..

Thanks in advance

Karvesh
Re: PHP BIRT - Delete Session Folders [message #756231 is a reply to message #756187] Fri, 11 November 2011 15:16 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Are you using the php Java Bridge or the BIRT Viewer on tomcat?

Jason

On 11/11/2011 7:24 AM, karvesh wrote:
> Dear All,
> The integration of php with BIRT entails the creation of session folders
> containing the rptdocument files.
>
> I have created a batch file with the simple code:
>
> forfiles -p "C:\what\ever" -s -m *.* -d <number of days> -c "cmd /c del
> @path"
>
> that will delete all session folders older than any specific number of days
>
> However, i am having some trouble to do it because my Tomcat server is
> running all time and the process seems to lock the rptdocument files in
> the session folders.
>
> Any advise how to overcome that problem? The issue is that the session
> folders are cropping rapidly on the server..
>
> Thanks in advance
>
> Karvesh
Re: PHP BIRT - Delete Session Folders [message #756328 is a reply to message #756231] Sat, 12 November 2011 03:39 Go to previous messageGo to next message
karvesh ghunsam is currently offline karvesh ghunsamFriend
Messages: 95
Registered: July 2011
Member
Dear Jason

Its the javabridge..
I noted that when i stop Tomcat, i can delete the session folders.. Is there another way to delete them with out having to stop tomcat?

Karvesh
Re: PHP BIRT - Delete Session Folders [message #756650 is a reply to message #756328] Mon, 14 November 2011 15:14 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

There appears to be a bug in some of the render samples, where the
document is not being closed:

$task->render();
$document->close();
$task->close();

Make sure you are closing the documents after every render operation and
then your delete code should work. I just tested this to verify.

Jason

On 11/11/2011 10:39 PM, karvesh wrote:
> Dear Jason
>
> Its the javabridge..
> I noted that when i stop Tomcat, i can delete the session folders.. Is
> there another way to delete them with out having to stop tomcat?
>
> Karvesh
Re: PHP BIRT - Delete Session Folders [message #756773 is a reply to message #756650] Tue, 15 November 2011 03:03 Go to previous message
karvesh ghunsam is currently offline karvesh ghunsamFriend
Messages: 95
Registered: July 2011
Member
Dear Jason

It is working fine now.. I indeed missed the close document code.. Smile
Thanks a lot!!

Cheers

Karvesh
Previous Topic:BIRT 3.7 Deployed in a Java Web Start (Jnlp) Stand Alone App
Next Topic:Birt Missing images on ProxyPass
Goto Forum:
  


Current Time: Thu Mar 28 17:32:43 GMT 2024

Powered by FUDForum. Page generated in 0.03429 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top