9 Replies Latest reply on Feb 4, 2010 2:14 AM by shay ngr

    jboss creates alot of index.html files

    shay ngr Newbie

      hi

      i have linux rad hat 5.1 with jboss

      for some reason the jboss creating alot of index.html file(i dont know the exect senrio) under /root.

      all the files created the date and time (2009 6/1  00:30).

      is anybody has a clue what could be the reason?

      thank you

        • 1. Re: jboss creates alot of index.html files
          Peter Johnson Master

          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?

          • 2. Re: jboss creates alot of index.html files
            shay ngr Newbie

            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&trade;</title>
               <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
               <link rel="StyleSheet" href="jboss.css" type="text/css"/>
            </head>

            <body>
            <!-- header begin -->
               <a href="http://www.jboss.org">
                  <img src="logo.gif" alt="JBoss" id="logo" width="226" height="105" />
               </a>
               <div id="header"> </div>
               <div id="navigation_bar"></div>
            <!-- header end -->

               <h3>JBoss Online Resources</h3>
               <ul>
                  <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>
               </ul>
            ...

             

            any ideas?

            • 3. Re: jboss creates alot of index.html files
              jaikiran pai Master

              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?

              • 4. Re: jboss creates alot of index.html files
                shay ngr Newbie

                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

                thank you

                • 5. Re: jboss creates alot of index.html files
                  jaikiran pai Master

                  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?

                  • 6. Re: jboss creates alot of index.html files
                    shay ngr Newbie

                    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

                    • 7. Re: jboss creates alot of index.html files
                      Peter Johnson Master

                      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.

                      • 8. Re: jboss creates alot of index.html files
                        Brian Stansberry Master

                        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

                         

                        wget http://<your_ip_address>:8080
                        
                        • 9. Re: jboss creates alot of index.html files
                          shay ngr Newbie

                          thank you i will check it..

                          sorry on my late response...