Hi Azeez Thanks for the explanation, as per the clients query we could then recomend a cron job as an effivient way to clear the tmp directory. This should then help ensure that the tmp directory doesnt get filled as they say
Regards,shavantha On May 24, 2014 9:22 AM, "Afkham Azeez" <[email protected]> wrote: > The tmp directory is related to java.io.tmpdir variable. Generally the > stuff in that directory is needed throughout the lifetime of the server, > and deleting stuff in that directory could cause certain things to fail. > The HouseKeeping task only cleans up stuff in the work directory, and it is > only the WSO2 code that places stuff in that directory, and the assumption > is, that those stuff are not needed for more than 30minutes from the time > of creation. So, it is not recommended for HK to delete stuff in the tmp > dir. Some of the files created in tmp are deleteOnExit type of files, so > when the JVM shuts down, they will be deleted. For other stuff, the user > has to manually clear them or run a cron job to clear them. > > > On Thu, May 22, 2014 at 11:17 AM, Shavantha Weerasinghe < > [email protected]> wrote: > >> Hi All >> >> What is the recommended way to clear the /tmp directory. Is it >> recommended to reset the path from >> WorkDirectory>${carbon.home}/tmp/work</WorkDirectory> To >> WorkDirectory>${carbon.home}/tmp</WorkDirectory> to clear the temp directory >> >> Regards,Shavantha >> >> Shavantha Weerasinghe >> Senior Software Engineer QA >> WSO2, Inc. >> lean.enterprise.middleware. >> http://wso2.com >> http://wso2.org >> Tel : 94 11 214 5345 >> Fax :94 11 2145300 >> >> >> >> On Mon, Aug 19, 2013 at 12:18 PM, Manoj Kumara <[email protected]> wrote: >> >>> Hi, >>> >>> The problem was as in [1] the temp files on CARBON_HOME/tmp location >>> keep grow and not get cleaned. To clean them using the housekeeping task I >>> set the WorkDirectory to CARBON_HOME/tmp. >>> >>> >>> [1] https://wso2.org/jira/browse/CARBON-11926 >>> >>> Best Regards.. >>> >>> >>> Manoj Kumara >>> Software Engineer >>> WSO2, Inc.; http://wso2.com >>> >>> Twitter: http://twitter.com/ManKuma >>> Mobile: +94713448188 >>> >>> >>> On Mon, Aug 19, 2013 at 11:33 AM, Manoj Kumara <[email protected]> wrote: >>> >>>> Hi Azeez, >>>> >>>> As you mentioned the approach addressed here seems to be problematic. >>>> Can you please advice on this. >>>> >>>> Thanks, >>>> Manoj >>>> >>>> Best Regards.. >>>> >>>> >>>> Manoj Kumara >>>> Software Engineer >>>> WSO2, Inc.; http://wso2.com >>>> >>>> Twitter: http://twitter.com/ManKuma >>>> Mobile: +94713448188 >>>> >>>> >>>> On Fri, Jul 12, 2013 at 9:00 AM, Eranda Sooriyabandara <[email protected] >>>> > wrote: >>>> >>>>> HI All, >>>>> G-Reg using the tmp for keeping the zip/gar extracted files until it >>>>> added to the database. AFAIK there is no usage of tmp/work. >>>>> >>>>> thanks >>>>> Eranda >>>>> >>>>> >>>>> On Thu, Jul 11, 2013 at 6:43 PM, Sameera Jayasoma <[email protected]>wrote: >>>>> >>>>>> We also set the following system property in the wso2server.sh/batfiles. >>>>>> IMHO WorkDirectory element in the carbon.xml is a redundant >>>>>> element. We should get rid of it if there are no objections. >>>>>> >>>>>> -Djava.io.tmpdir="$CARBON_HOME/tmp" >>>>>> >>>>>> >>>>>> >>>>>> Thanks, >>>>>> Sameera. >>>>>> >>>>>> >>>>>> On Thu, Jul 11, 2013 at 2:37 PM, Manoj Kumara <[email protected]>wrote: >>>>>> >>>>>>> Hi All, >>>>>>> >>>>>>> When observing on Carbon-JIRA issue [1] I observed that currently on >>>>>>> carbon.xml the work directory for house keeping task is set as , >>>>>>> >>>>>>> <WorkDirectory>${carbon.home}/tmp/work</WorkDirectory> >>>>>>> >>>>>>> But currently our temp files are created inside CARBON_HOME/tmp >>>>>>> directory and these files will not be cleaned during the clean-up >>>>>>> process. >>>>>>> The idea is to set workerDirectory to CARBON_HOME/tmp. >>>>>>> >>>>>>> Appreciate your guidance. >>>>>>> >>>>>>> [1] https://wso2.org/jira/browse/CARBON-11926 >>>>>>> >>>>>>> >>>>>>> Best Regards.. >>>>>>> >>>>>>> >>>>>>> Manoj Kumara >>>>>>> Software Engineer >>>>>>> WSO2, Inc.; http://wso2.com >>>>>>> >>>>>>> Twitter: http://twitter.com/ManKuma >>>>>>> Mobile: +94713448188 >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Sameera Jayasoma, >>>>>> Architect, >>>>>> >>>>>> WSO2, Inc. (http://wso2.com) >>>>>> email: [email protected] >>>>>> blog: http://sameera.adahas.org >>>>>> twitter: https://twitter.com/sameerajayasoma >>>>>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections >>>>>> >>>>>> Lean . Enterprise . Middleware >>>>>> >>>>>> _______________________________________________ >>>>>> Dev mailing list >>>>>> [email protected] >>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> *Eranda Sooriyabandara*Senior Software Engineer; >>>>> Integration Technologies Team; >>>>> WSO2 Inc.; http://wso2.com >>>>> Lean . Enterprise . Middleware >>>>> >>>>> E-mail: eranda AT wso2.com >>>>> Mobile: +94 716 472 816 >>>>> Linked-In: http://www.linkedin.com/in/erandasooriyabandara >>>>> Blog: http://emsooriyabandara.blogspot.com/ >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> > > > -- > *Afkham Azeez* > Director of Architecture; WSO2, Inc.; http://wso2.com > Member; Apache Software Foundation; http://www.apache.org/ > * <http://www.apache.org/>* > *email: **[email protected]* <[email protected]> > * cell: +94 77 3320919 <%2B94%2077%203320919> blog: * > *http://blog.afkham.org* <http://blog.afkham.org> > *twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> > * linked-in: **http://lk.linkedin.com/in/afkhamazeez > <http://lk.linkedin.com/in/afkhamazeez>* > > *Lean . Enterprise . Middleware* >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
