check out /usr/bin/truncate truncate --size 0 /path/to/fil
On Tue, Apr 22, 2014 at 8:28 AM, Randhir Singh <randhir.si...@sterlite.com>wrote: > Thanks for your answer Leon. The space should be freed immediately on the > system, can the catalina.out be truncated on an running system? > > Regards > > -----Original Message----- > From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com] > Sent: Tuesday, April 22, 2014 7:55 PM > To: Tomcat Users List > Subject: Re: catalina.out is 13G > > Hello Randhir, > > whatever revert means. > However, if you remove the file the place will be occupied on most *'nix > system until a process restart. You will probably have to restart your > server to free this mount point's storage anyway. > > regards > Leon > > > On Tue, Apr 22, 2014 at 4:20 PM, Randhir Singh > <randhir.si...@sterlite.com>wrote: > > > Hi, > > > > I have a immediate concern as the mount point on which Tomcat is > > placed is 99% and on checking I found that catalina.out is 13GB. I > > wanted to implement a solution for this but am not sure, can I take a > > backup of catalina.out and truncate catalina.out on the running > > application? > > > > Humbly requesting a revert on an immediate basis on whether I can > > truncate catalina.out after taking a backup on a running tomcat > > application. > > > > Regards > > > > -- > > > > *STL Disclaimer:* > > The content of this message may be legally privileged and confidential > > and are for the use of the intended recipient(s) only. It should not > > be read, copied and used by anyone other than the intended > > recipient(s). If you have received this message in error, please > > immediately notify the sender, preserve its confidentiality and delete > > it. Before opening any attachments please check them for viruses and > > defects. No employee or agent is authorised to conclude any binding > > agreement on behalf of Sterlite Technologies Limited with another > > party by email without express written confirmation by authorised > > person. Visit us at www.sterlitetechnologies.com Please consider > > environment before printing this email ! > > > > > > > > > > > > -- > > *STL Disclaimer:* > The content of this message may be legally privileged and confidential and > are for the use of the intended recipient(s) only. It should not be read, > copied and used by anyone other than the intended recipient(s). If you have > received this message in error, please immediately notify the sender, > preserve its confidentiality and delete it. Before opening any attachments > please check them for viruses and defects. No employee or agent is > authorised to conclude any binding agreement on behalf of Sterlite > Technologies Limited with another party by email without express written > confirmation by authorised person. Visit us at > www.sterlitetechnologies.com > Please consider environment before printing this email ! > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >