-
1. Re: Profile Service creating temporary files periodically
bytor99999 Feb 26, 2008 3:18 PM (in response to anil.saldhana)Anil
http://jira.jboss.com/jira/browse/JBAS-4389
covers this issue
As a temp solution you can put
rem Enable the VFS NoCopyNestedJarHandler
set JAVA_OPTS=%JAVA_OPTS% -Djboss.vfs.forceNoCopy=true
into your run.bat, if you like. -
2. Re: Profile Service creating temporary files periodically
bytor99999 Feb 26, 2008 3:20 PM (in response to anil.saldhana)Actually that temp solution is for all those nestedjar* that remain in your temp directory after shutting the server down.
-
3. Re: Profile Service creating temporary files periodically
anil.saldhana Feb 26, 2008 3:55 PM (in response to anil.saldhana)Yes, the system property is the solution. I thought the system property was added by default in Beta4. Apparently not....
-
4. Re: Profile Service creating temporary files periodically
bytor99999 Feb 26, 2008 4:35 PM (in response to anil.saldhana)Yes, for a brief moment of time, it was automatically there, but then poof, it disappeared. :)
-
5. Re: Profile Service creating temporary files periodically
starksm64 Feb 26, 2008 5:24 PM (in response to anil.saldhana)Dimitris removed it because it was causing the cts config to fail to startup. We need to revisit restoring it.
-
6. Re: Profile Service creating temporary files periodically
anil.saldhana Feb 26, 2008 5:28 PM (in response to anil.saldhana)IMO the vfs code needs a change to make forced copying on demand, rather than the converse that is being performed here (by adding the system property to not do copy by default). Probably the right approach for GA.
-
7. Re: Profile Service creating temporary files periodically
starksm64 Feb 26, 2008 5:34 PM (in response to anil.saldhana)"anil.saldhana@jboss.com" wrote:
AS5Beta4 is increasingly creating temporary files under /tmp (5 files every 30 seconds). This issue has got something to do with the profile service, as it is for bootstrap-repo profile.
http://wiki.jboss.org/wiki/Wiki.jsp?page=ProfileService
JBoss Security Team has been running AS5Beta4 on a server. So after 16 hours or so (when there was no interaction/activity), the /tmp folder reached 55GB. So the AS instance had to be brought down.
The /tmp folder has files with pattern nestedjar*:
Ok, I did not know it was increasing without bound when the profile service is enabled. I created this issue for it.
http://jira.jboss.com/jira/browse/JBAS-5256 -
8. Re: Profile Service creating temporary files periodically
starksm64 Feb 27, 2008 2:57 PM (in response to anil.saldhana)One issue is that we are too aggressively creating the entire JarHandler structure. All the profile service is doing is asking the deploy directory VirtualFile for its children. It does nother with these other than ask for the last modified time.
Either lazily initializing the JarHandler or/and tracking previously extracted jars would fix the excessive creation of tmp jars. -
9. Re: Profile Service creating temporary files periodically
dimitris Feb 28, 2008 7:11 AM (in response to anil.saldhana)I've enabled jboss.vfs.forceNoCopy=true by default (if not specified) in AS trunk, so that should solve the tmp file problem now. The CTS config seems happy with the change, too.
http://jira.jboss.com/jira/browse/JBAS-4389
Going forward (for GA), we may consider making the vfs NoCopy behaviour the default, and use a different flag to explicitly enable it.
http://jira.jboss.com/jira/browse/JBAS-5262