Just wanted to close this out for anyone searching in the future.
I believe I have found the correct configuration for my <Host>. I am
still testing, but initial tests are positive.
Changing:
<Host name="www.domain1.com" appBase="/path/to/domain1.com">
<Alias>domain1.com</Alias>
<Context path="" docBase="/path/to/domain1.com/"
useHttpOnly="true" allowLinking="true" />
</Host>
To:
<Host name="www.domain1.com" appBase="/path/to/domain1.com"
deployOnStartup="true" autoDeploy="false" deployIgnore=".*">
<Alias>domain1.com</Alias>
<Context path="" docBase="/path/to/domain1.com/"
useHttpOnly="true" allowLinking="true" />
</Host>
I'm not sure that I need to have the "deployOnStartup" as docs seem to indicate
that defaults to true. I set the autoDeploy to false because each host/domain
directory
only has one application (ROOT) and we will never be dropping in a war file for
tomcat to deploy
within that host. I set the deployIgnore to base wildcard so that when the
application
does deploy on startup (base root app) - it will skip the subfolders and we no
longer have
the "INFO: Deploying web application directory /path/to/domain1.com/images" in
the logs.
Again, initial tests are showing CFM pages being processed (we even keep
modules and
components in subfolders - which are no longer being "deployed") accurately.
Hope this helps someone in the future.
Thanks for the initial tips on where to look for this resolution Matthew!
Thanks,
Alan Cole
(PGP Key ID: 0x82D8E0C7)
Begin forwarded message:
> From: Alan Cole <[email protected]>
> Subject: server restart time
> Date: October 2, 2012 9:00:36 AM EDT
> To: [email protected]
>
> Hi all,
>
> A little while back I had asked about openbd server restart time seemed long
> compared to ACF (which is simply where I've moved from and as such is where
> my experience is).
>
> I think I found a clue to as to what is happening. I have the server setup as
> a
> single install with virtural hosts using apache and tomcat. When I restart
> the server
> I get the following entries in the tomca/logs/catalina.out log file:
>
> INFO: Deploying web application directory /path/to/domain.com/images
> Oct 1, 2012 5:03:46 PM org.apache.catalina.startup.HostConfig deployDirectory
> INFO: Deploying web application directory /path/to/domain.com/includes
> Oct 1, 2012 5:03:48 PM org.apache.catalina.startup.HostConfig deployDirectory
> INFO: Deploying web application directory /path/to/domain.com/pics
> Oct 1, 2012 5:03:51 PM org.apache.catalina.startup.HostConfig deployDirectory
> INFO: Deploying web application directory /path/to/domain.com/pdfs
> Oct 1, 2012 5:03:53 PM org.apache.catalina.startup.HostConfig deployDirectory
> INFO: Deploying web application directory /path/to/domain.com/editor
> Oct 1, 2012 5:03:55 PM org.apache.catalina.startup.HostConfig deployDirectory
> INFO: Deploying web application directory /path/to/domain.com/slideshow
> Oct 1, 2012 5:03:57 PM org.apache.catalina.startup.HostConfig deployDirectory
> INFO: Deploying web application directory /path/to/domain.com/modules
> ......
> Oct 1, 2012 5:09:58 PM org.apache.coyote.AbstractProtocol start
> INFO: Starting ProtocolHandler ["ajp-bio-8009"]
> Oct 1, 2012 5:09:59 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 386015 ms
>
> As you can see it looks like the java server is deploying an "application"
> for each
> and every directory within each "actual" application/domain. I have a number
> of domains on
> the server and this process is what is taking the 5-6 mins before the server
> is
> ready/accepting connections.
>
> My guess is that is not the way it "should" be and that I have something not
> configured
> or set up correctly. Does anyone have any starting place suggestions?
> Logically I would
> think that there would only be one (1) "application" deployed for each domain
> and the
> sub-folders would simply be that - folders within the application.
>
> Thanks for any help, comments or suggestions.
>
> Alan Cole
> (PGP Key ID: 0x82D8E0C7)
>
> PS - if I sent this twice I apologize, it did not look like it went out
> properly the first time.
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en