>> Many plug-ins acquire a working directory with code similar to the >> sample attached below. This is mostly safe but when running more than >> one BASE server on a host there is a potential clash. A plugin running >> in the different BASEs may allocate the same temporary directory (since >> jobids may match). >> >> The java.io.tmpdir returns /tmp on linux irrespective what >> CATALINA_TMPDIR is set to. /tmp is the Java default on linux and running >> tomcat CATALINA_TMPDIR is set properly by default. This means that the >> tmp for running tomcat server is /path/to/tomcat/temp as expected. >> >> So, the BASEcore is proably using the CATALINA_TMPDIR whereas the >> plugins are using the system default. This must be an effect of how >> plugins are started by the core. Is it possible to pass the tmp >> directory to the plug-in running environment? > > I am not sure that I understand why using one directory would be better > than the other. Wouldn't the name clash still happen if > /path/to/tomcat/temp was used instead of /tmp?
I would like to use SEVERAL temporary directories, one for each tomcat server running. In my setup I have several BASE instances running, each in they own tomcat instance. I can setup up the tomcats to use different temporary directories (well, it does that by default so I am not really doing anything), but the problem occurs as soon as any of the BASE servers starts a plugin requiring temporary disk space. Independent of assigned tomcat temporary directories all plugins use /tmp. In the start up of the different tomcat servers, java.io.tmpdir is set to private tempdirs like /path/to/tomcat1/temp /path/to/tomcat2/temp (logs, conf, and ordinary tomcat stuff are set up similarly). The problem is that when tomcat/BASE starts a plugin execution the temporary directory is reset to /tmp. This could be that plugins runs in a ... jobagent ... which doesn't know anything about the temporary directory structure ... Hm, this is probably the issue. So, a new question. Can we tell the jobagents which temporary directory to use? I suppose a configuration parameter would solve it but dynamically on the fly? > > As far as I know the core is not using a temporary directory for > anything. If it needed to, the core would probably also use the > java.io.tmpdir directory. Yes, but for the core it will be the one set at tomcat start up, wouldn't it? Jari ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ basedb-devel mailing list basedb-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/basedb-devel