Class files not saving to disk?

Where are the class files located for the each context?

I am running lucee via tomcat 8 and apache https on windows 2012r2. I have
22 sites configured. they all load. I can see them and Lucee is working.

my issue is this.

First page loads takes maybe 15 seconds. i’m assuming its creating is
class from source. i hit the page repeatedly and it loads very fast <
100ms. i stop hitting it and wait about about 2 minutes. the next time i
hit it takes 15 seconds.

is it possible that the classes are created and stored in memory and never
written to disk? memory being purged every so often forcing source to be
recompiled? also when i login to admin i see nothing cached.

it makes no difference if the admin settings are Settings -
Performance/Caching = Once ( Good ) or if Settings - Performance/Caching = Never
( Best Performance )

not to mention that i don’t see any class files when navigation the
{contexts}/cache or {context}/classes or {context}/cfclasses

Any idea?

I tried using EHcache as template & etc cache. It made no difference.

I should add. tomcat is running as a domain account with full admin rights.On Friday, August 28, 2015 at 8:25:46 PM UTC-7, ma...@nonfatmedia.com wrote:

Where are the class files located for the each context?

I am running lucee via tomcat 8 and apache https on windows 2012r2. I have
22 sites configured. they all load. I can see them and Lucee is working.

my issue is this.

First page loads takes maybe 15 seconds. i’m assuming its creating is
class from source. i hit the page repeatedly and it loads very fast <
100ms. i stop hitting it and wait about about 2 minutes. the next time i
hit it takes 15 seconds.

is it possible that the classes are created and stored in memory and never
written to disk? memory being purged every so often forcing source to be
recompiled? also when i login to admin i see nothing cached.

it makes no difference if the admin settings are Settings -
Performance/Caching = Once ( Good ) or if Settings - Performance/Caching
= Never ( Best Performance )

not to mention that i don’t see any class files when navigation the
{contexts}/cache or {context}/classes or {context}/cfclasses

Any idea?

I tried using EHcache as template & etc cache. It made no difference.

This sounds to me more like you’ve set a short (or no) timeout for your
application in Application.cfc/Application.cfm. Can you verify that you’ve
set the application timeout, something along the lines of:

this.applicationTimeout = CreateTimeSpan( 1, 0, 0, 0 );

or

<cfset this.applicationTimeout = createTimeSpan( 1, 0, 0, 0 ) />
for Application.cfc/Application.cfm respectively?

For the record, CreateTimeSpan( Days, Hours, Minutes, Seconds) determines
how long before your application times out (and everything reloads from
source). In my example it’s every day (24 hours) which is typical of most
production systems. This is typically shorter for test systems, and 0
across the board for dev systems. It’s easy to forget to change this when
going from dev to test to production, depending on how you deploy changes :wink:

– Denny