As far as I know, JBoss AS does not create any HTML files. Are you sure this is not a side-effect of an app you are running? And why are you running as root?
Did you look in one of the index.html files? What do they contain? Could you post one?
first of all thank you for your quick response.
i think you are right...the files created as root owner and not in jboss user.
but i checked the index file and it refers to jboss..
this is part of the index.html file:
<title>Welcome to JBoss™</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="StyleSheet" href="jboss.css" type="text/css"/>
<!-- header begin -->
<img src="logo.gif" alt="JBoss" id="logo" width="226" height="105" />
<div id="header"> </div>
<!-- header end -->
<h3>JBoss Online Resources</h3>
<li><a href="http://www.jboss.org/jbossas/docs">JBoss AS Documentation</a></li>
<li><a href="http://wiki.jboss.org">JBoss Wiki</a></li>
<li><a href="http://jira.jboss.org/jira/browse/JBAS">JBoss JIRA</a></li>
<li><a href="http://www.jboss.org/index.html?module=bb">JBoss Forums</a></li>
What exactly is the path where these files get created? Also please post the contents of the boot.log (which you will find in JBOSS_HOME/server/< servername>/log folder). Does this occur on a clean installation of JBoss? Or does this happen after you deploy your application onto it?
the excat path is /root
yes it occurs on a clean installation
i have 2 servers but it occurs only on one of them.
we even upgrade the jboss but the problem still exist.
sorry but i can not post the boot.log
Like Peter said, i haven't heard about JBoss creating html files (or any other files) outside of the JBoss AS installation. Let's see what's creating those.
How exactly do you start the server? How frequently after startup are those files created? Do you use any additional scripts to start the server? Have you changed any properties or any other configurations of JBoss? Specifically have you changed the property value which represents the tmp file location of JBoss AS (although, if that was the case, you would have seen some other files in there too).
In your first post, you mention that "a lot" of index.html files are created. In your latest post, you say that the files are created exactly at /root. Looks a bit contradictory because, each folder cannot have multiple files with the same name. So what exactly is being created in the /root folder? Any other files other than index.html? What exactly are their names?
Those files created each approximately 5 min ( there in no exact time)
i am not using additional scripts to start the server
i didn't change any properties or any other configurations of JBoss excpt from the max sessions and threads(i am using two servers each of them running jboss 'both have the same jboss configuration but the problem occures only in one of them).
the files created under /root with the name index.html and then the next file is index.html.1 and so on
-rw-r--r-- 1 root root 1570 Jan 6 00:30 index.html
-rw-r--r-- 1 root root 1570 Jan 6 00:30 index.html.1
-rw-r--r-- 1 root root 1570 Jan 6 00:30 index.html.10
-rw-r--r-- 1 root root 1570 Jan 6 00:30 index.html.11
-rw-r--r-- 1 root root 1570 Jan 6 00:30 index.html.12
-rw-r--r-- 1 root root 1570 Jan 6 00:30 index.html.13
-rw-r--r-- 1 root root 1570 Jan 6 00:30 index.html.14
-rw-r--r-- 1 root root 1570 Jan 6 00:30 index.html.15
-rw-r--r-- 1 root root 1570 Jan 6 00:30 index.html.16
-rw-r--r-- 1 root root 1570 Jan 6 00:30 index.html.17
-rw-r--r-- 1 root root 1570 Jan 6 00:30 index.html.18
-rw-r--r-- 1 root root 1570 Jan 6 00:30 index.html.19
-rw-r--r-- 1 root root 1570 Jan 6 00:30 index.html.2
-rw-r--r-- 1 root root 1570 Jan 6 00:30 index.html.20
-rw-r--r-- 1 root root 1570 Jan 6 00:30 index.html.21
thank you very much for your help
The contents of the file looks like it came from server/default/deploy/ROOT.war/index.html.
The only way the files could get copied to the /root directory, and have an owner and group of root, is if a process that was running as root placed them there. Based on what you wrote, I gather that JBoss AS is not running under root. Which means that it is not JBoss AS or any of the apps deployed to it that are doing this (unless there is something about Linux security that I don't know, which is very possible )
I checked two of my Linux systems and neither of them have these files in /root.
If you were running on Windows, I would suggest running File Monitor (or Process Monitor) from Sysinternals. That tools lets you monitor which processes are doing what to files; you could easily set it up to tell you everything that is happening to files in a specific directory. I don't know if there are any Linux tools that would do the same thing.
If you use wget and request the same URL multiple times, it will save different versions of the returned document by appending ".X" to the file name.
Perhaps you've got some process running as root that's monitoring the health of the AS by periodically using something like
thank you i will check it..
sorry on my late response...