Re: Changes do not show up on live website
Thanks a lot for your replies. We found the issue and its a very silly one. We used to have a script that copies files from test server to prod server. I never had to bother what the folder name in prod was as script was written long back and we just run it. Recently the script was broken due to some permissions issues, so we had to copy the files manually. We thought test and prod has same folder structure Prod has a folder with same name as test environment, and an another folder with slightly different name which was actually used. So we copied files into the folder with same name as test environment rather than the other. Can't believe I wasted so much of my time and especially you guys. Sorry about that. On Fri, Dec 14, 2012 at 11:19 AM, Dave Watts wrote: > > > Dave, do you know if there's a good reason they'll all stuck in the same > > dir, as opposed to hierarchically? I suspect it's just an oversight / it > > not occurring to them on Adobe's part, but perhaps it needs to be this > > way? It's always bugged me. > > I don't know if it's an oversight. I think it's easier than the > alternative, which involves creating subdirectories based on some > naming scheme, then figuring out how to traverse them, etc. > > > Our app will stick about 8 files in that dir if we let it (which we > > don't). > > Yeah, that directory can get really crazy - I've seen cases with > several hundred thousand files which is s l o w. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > http://training.figleaf.com/ > > Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on > GSA Schedule, and provides the highest caliber vendor-authorized > instruction at our training centers, online, or onsite. > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353483 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Changes do not show up on live website
> Dave, do you know if there's a good reason they'll all stuck in the same > dir, as opposed to hierarchically? I suspect it's just an oversight / it > not occurring to them on Adobe's part, but perhaps it needs to be this > way? It's always bugged me. I don't know if it's an oversight. I think it's easier than the alternative, which involves creating subdirectories based on some naming scheme, then figuring out how to traverse them, etc. > Our app will stick about 8 files in that dir if we let it (which we > don't). Yeah, that directory can get really crazy - I've seen cases with several hundred thousand files which is s l o w. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353477 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Changes do not show up on live website
as you have said your using a CMS, I would suspect the issue lay there, it has not published the file changes properly. Are they published to a flat file or do they come from a database, check the settings on farcry and make sure the doc is actually published. On Fri, Dec 14, 2012 at 5:09 PM, Adam Cameron < adamcameroncoldfus...@gmail.com> wrote: > > Dave, do you know if there's a good reason they'll all stuck in the same > dir, as opposed to hierarchically? I suspect it's just an oversight / it > not occurring to them on Adobe's part, but perhaps it needs to be this > way? It's always bugged me. > > Our app will stick about 8 files in that dir if we let it (which we > don't). > > -- > Adam > > > > On 14 December 2012 16:44, Dave Watts wrote: > > > > > The real problem, in my opinion, is simply that all these files are > > placed within a single directory. If there was a nested directory > > structure to manage these files, average seek times would be much > > better. But when you have over fifty thousand files in a single > > directory - which is not uncommon in a production CF environment - > > performance is going to suck. > > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353476 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Changes do not show up on live website
Dave, do you know if there's a good reason they'll all stuck in the same dir, as opposed to hierarchically? I suspect it's just an oversight / it not occurring to them on Adobe's part, but perhaps it needs to be this way? It's always bugged me. Our app will stick about 8 files in that dir if we let it (which we don't). -- Adam On 14 December 2012 16:44, Dave Watts wrote: > > The real problem, in my opinion, is simply that all these files are > placed within a single directory. If there was a nested directory > structure to manage these files, average seek times would be much > better. But when you have over fifty thousand files in a single > directory - which is not uncommon in a production CF environment - > performance is going to suck. > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353475 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Changes do not show up on live website
H. Nothing that I can think of from a CF perspective. Do you have a load-balanced environment, and only one of the servers has been updated or something? Or there's some logic-driven situation which might be working in an unexpected way which means it's all working fine, just not quite doing what you expect? -- Adam On 14 December 2012 16:46, funand learning wrote: > > Thanks Adam and Dave, there were some old files dating back to 2010. We > deleted them and restarted the server, but with no change. > > ANy other clues why this could be happening? > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353474 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Changes do not show up on live website
Thanks Adam and Dave, there were some old files dating back to 2010. We deleted them and restarted the server, but with no change. ANy other clues why this could be happening? On Fri, Dec 14, 2012 at 10:29 AM, Adam Cameron < adamcameroncoldfus...@gmail.com> wrote: > > Yep, definitely. > > When CF compiles your source code (before it runs it), that "Save Class > Files" makes CF write the compiled classes out to that directory. The only > benefit this gives is that if you're short on memory, sometimes CF will > cycle a compiled class out of memory, which means the next time you use it > it will need to be reloaded. If the class file is already there, it'll use > that, otherwise CF will need to recompile the source code (which has a > performance overhead). CF will, however, attempt to keep commonly used > classes in memory, and only cycle-out not-oft-used ones, so this is not > much of a problem. > > Obviously when you chance the source code, CF is supposed to recompile > anyhow, but I have found that sometimes it *doesn't* when you've got an > already compiled file for that code in that directory. This still happens > on CF9, as I experienced it last week. > > You should try to set your "maximum templates" setting to be slightly > higher than *all* your application's compiled classes (if you have the RAM > to do so), and this will mean CF will never cycle anything out of RAM. > > The other consideration is that when CF restarts, obviously it starts with > nothing in memory, so it will need to recompile everything again, which > makes start-up a bit slower. > > On the down side of saving class files is that on Windows I actually find > it degrades performance (Charlie Arehart disagrees with me here, and he's > more of an expert on the topic, so take my advice with a pinch of salt), > because Windows really struggles with more than a few hundred files in one > directory, and most CF apps have far more than that. So this means when CF > checks whether source code and compiled class file differ (which is every > time the code is requested), Windows is very slow to find the file. *nix > does not have this issue. > > On the whole, I have found it better to run *without* this setting on in a > production environment. However it has not been my job to troubleshoot > this sort of thing for a number of years now, so I would not take my advice > as gold. > > -- > Adam > > > > On 14 December 2012 16:13, funand learning > wrote: > > > > > Another question. Is it safe to delete those files? Coldfusion does not > use > > any of those files, right? > > > > On Fri, Dec 14, 2012 at 10:05 AM, Adam Cameron < > > adamcameroncoldfus...@gmail.com> wrote: > > > > > > > > Sorry, yes. > > > > > > -- > > > Adam > > > > > > On 14 December 2012 16:04, funand learning > > > wrote: > > > > > > > > > > > are these cfclasses in WEB-INF folder? > > > > > > > > On Fri, Dec 14, 2012 at 9:56 AM, Adam Cameron < > > > > adamcameroncoldfus...@gmail.com> wrote: > > > > > > > > > > > > > > OK, but what about the files in cfclasses? It's unlikely there's > old > > > ones > > > > > in there if the setting is off, but sometimes there's some cruft > > lying > > > > > around. > > > > > > > > > > -- > > > > > Adam > > > > > > > > > > > > > > > > > > > > On 14 December 2012 15:55, fun and learning < > funandlrnn...@gmail.com > > > > > > > > wrote: > > > > > > > > > > > > > > > > > >Try switching off "save class files" and getting rid of all the > > > files > > > > in > > > > > > >the cfclasses dir. They are more of a blight than a help in my > > > > > experience. > > > > > > > > > > > > > >-- > > > > > > >Adam > > > > > > > > > > > > > >On 14 December 2012 15:40, fun and learning < > > > funandlrnn...@gmail.com> > > > > > > wrote: > > > > > > > > > > > > > >> > > > > > > > > > > > > This option is already unchecked in Coldfusion admin > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353473 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Changes do not show up on live website
> On the down side of saving class files is that on Windows I actually find > it degrades performance (Charlie Arehart disagrees with me here, and he's > more of an expert on the topic, so take my advice with a pinch of salt), > because Windows really struggles with more than a few hundred files in one > directory, and most CF apps have far more than that. So this means when CF > checks whether source code and compiled class file differ (which is every > time the code is requested), Windows is very slow to find the file. *nix > does not have this issue. I think the truth lies somewhere in between both of these points. In some cases, it will degrade performance. In other cases, it will improve performance. It really depends on a couple of factors: disk performance and the number of CF files you have, in total. This is one of those things where you really have to load test your system to find out whether it will help or hurt. Also, Unix does in fact have this issue - the first case where I encountered it was a Solaris box. While there are performance differences between NTFS and common Unix or Linux filesystems like ext4, those aren't all big when it comes to this. Of course, if you try to browse the cfclasses directory with Windows Explorer, good luck with that! The real problem, in my opinion, is simply that all these files are placed within a single directory. If there was a nested directory structure to manage these files, average seek times would be much better. But when you have over fifty thousand files in a single directory - which is not uncommon in a production CF environment - performance is going to suck. Finally, the problem isn't really the comparison between the source code and the compiled class - that's a separate issue, and of course that can be disabled in production - but simply the seek time needed to find the compiled class on disk in the first place. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353472 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Changes do not show up on live website
Yep, definitely. When CF compiles your source code (before it runs it), that "Save Class Files" makes CF write the compiled classes out to that directory. The only benefit this gives is that if you're short on memory, sometimes CF will cycle a compiled class out of memory, which means the next time you use it it will need to be reloaded. If the class file is already there, it'll use that, otherwise CF will need to recompile the source code (which has a performance overhead). CF will, however, attempt to keep commonly used classes in memory, and only cycle-out not-oft-used ones, so this is not much of a problem. Obviously when you chance the source code, CF is supposed to recompile anyhow, but I have found that sometimes it *doesn't* when you've got an already compiled file for that code in that directory. This still happens on CF9, as I experienced it last week. You should try to set your "maximum templates" setting to be slightly higher than *all* your application's compiled classes (if you have the RAM to do so), and this will mean CF will never cycle anything out of RAM. The other consideration is that when CF restarts, obviously it starts with nothing in memory, so it will need to recompile everything again, which makes start-up a bit slower. On the down side of saving class files is that on Windows I actually find it degrades performance (Charlie Arehart disagrees with me here, and he's more of an expert on the topic, so take my advice with a pinch of salt), because Windows really struggles with more than a few hundred files in one directory, and most CF apps have far more than that. So this means when CF checks whether source code and compiled class file differ (which is every time the code is requested), Windows is very slow to find the file. *nix does not have this issue. On the whole, I have found it better to run *without* this setting on in a production environment. However it has not been my job to troubleshoot this sort of thing for a number of years now, so I would not take my advice as gold. -- Adam On 14 December 2012 16:13, funand learning wrote: > > Another question. Is it safe to delete those files? Coldfusion does not use > any of those files, right? > > On Fri, Dec 14, 2012 at 10:05 AM, Adam Cameron < > adamcameroncoldfus...@gmail.com> wrote: > > > > > Sorry, yes. > > > > -- > > Adam > > > > On 14 December 2012 16:04, funand learning > > wrote: > > > > > > > > are these cfclasses in WEB-INF folder? > > > > > > On Fri, Dec 14, 2012 at 9:56 AM, Adam Cameron < > > > adamcameroncoldfus...@gmail.com> wrote: > > > > > > > > > > > OK, but what about the files in cfclasses? It's unlikely there's old > > ones > > > > in there if the setting is off, but sometimes there's some cruft > lying > > > > around. > > > > > > > > -- > > > > Adam > > > > > > > > > > > > > > > > On 14 December 2012 15:55, fun and learning > > > > > wrote: > > > > > > > > > > > > > > >Try switching off "save class files" and getting rid of all the > > files > > > in > > > > > >the cfclasses dir. They are more of a blight than a help in my > > > > experience. > > > > > > > > > > > >-- > > > > > >Adam > > > > > > > > > > > >On 14 December 2012 15:40, fun and learning < > > funandlrnn...@gmail.com> > > > > > wrote: > > > > > > > > > > > >> > > > > > > > > > > This option is already unchecked in Coldfusion admin > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353471 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Changes do not show up on live website
> Another question. Is it safe to delete those files? Coldfusion does not use > any of those files, right? CF does use them if they're there, but it is perfectly safe to delete them. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353470 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Changes do not show up on live website
Another question. Is it safe to delete those files? Coldfusion does not use any of those files, right? On Fri, Dec 14, 2012 at 10:05 AM, Adam Cameron < adamcameroncoldfus...@gmail.com> wrote: > > Sorry, yes. > > -- > Adam > > On 14 December 2012 16:04, funand learning > wrote: > > > > > are these cfclasses in WEB-INF folder? > > > > On Fri, Dec 14, 2012 at 9:56 AM, Adam Cameron < > > adamcameroncoldfus...@gmail.com> wrote: > > > > > > > > OK, but what about the files in cfclasses? It's unlikely there's old > ones > > > in there if the setting is off, but sometimes there's some cruft lying > > > around. > > > > > > -- > > > Adam > > > > > > > > > > > > On 14 December 2012 15:55, fun and learning > > > wrote: > > > > > > > > > > > >Try switching off "save class files" and getting rid of all the > files > > in > > > > >the cfclasses dir. They are more of a blight than a help in my > > > experience. > > > > > > > > > >-- > > > > >Adam > > > > > > > > > >On 14 December 2012 15:40, fun and learning < > funandlrnn...@gmail.com> > > > > wrote: > > > > > > > > > >> > > > > > > > > This option is already unchecked in Coldfusion admin > > > > > > > > > > > > > > > > > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353468 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Changes do not show up on live website
Sorry, yes. -- Adam On 14 December 2012 16:04, funand learning wrote: > > are these cfclasses in WEB-INF folder? > > On Fri, Dec 14, 2012 at 9:56 AM, Adam Cameron < > adamcameroncoldfus...@gmail.com> wrote: > > > > > OK, but what about the files in cfclasses? It's unlikely there's old ones > > in there if the setting is off, but sometimes there's some cruft lying > > around. > > > > -- > > Adam > > > > > > > > On 14 December 2012 15:55, fun and learning > > wrote: > > > > > > > > >Try switching off "save class files" and getting rid of all the files > in > > > >the cfclasses dir. They are more of a blight than a help in my > > experience. > > > > > > > >-- > > > >Adam > > > > > > > >On 14 December 2012 15:40, fun and learning > > > wrote: > > > > > > > >> > > > > > > This option is already unchecked in Coldfusion admin > > > > > > > > > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353467 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Changes do not show up on live website
are these cfclasses in WEB-INF folder? On Fri, Dec 14, 2012 at 9:56 AM, Adam Cameron < adamcameroncoldfus...@gmail.com> wrote: > > OK, but what about the files in cfclasses? It's unlikely there's old ones > in there if the setting is off, but sometimes there's some cruft lying > around. > > -- > Adam > > > > On 14 December 2012 15:55, fun and learning > wrote: > > > > > >Try switching off "save class files" and getting rid of all the files in > > >the cfclasses dir. They are more of a blight than a help in my > experience. > > > > > >-- > > >Adam > > > > > >On 14 December 2012 15:40, fun and learning > > wrote: > > > > > >> > > > > This option is already unchecked in Coldfusion admin > > > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353466 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Changes do not show up on live website
OK, but what about the files in cfclasses? It's unlikely there's old ones in there if the setting is off, but sometimes there's some cruft lying around. -- Adam On 14 December 2012 15:55, fun and learning wrote: > > >Try switching off "save class files" and getting rid of all the files in > >the cfclasses dir. They are more of a blight than a help in my experience. > > > >-- > >Adam > > > >On 14 December 2012 15:40, fun and learning > wrote: > > > >> > > This option is already unchecked in Coldfusion admin > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353465 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Changes do not show up on live website
>Try switching off "save class files" and getting rid of all the files in >the cfclasses dir. They are more of a blight than a help in my experience. > >-- >Adam > >On 14 December 2012 15:40, fun and learning wrote: > >> This option is already unchecked in Coldfusion admin ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353464 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Changes do not show up on live website
Try switching off "save class files" and getting rid of all the files in the cfclasses dir. They are more of a blight than a help in my experience. -- Adam On 14 December 2012 15:40, fun and learning wrote: > > Hi All - > > We are using Coldfusion with farcry CMS. I made some changes and pushed > them live, but changes do not seem to reflect on the site. We recycled the > servers, and the change showed up, but after a page refresh it stopped > showing up. > > Can anyone have any clues on why this could be happening? > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353463 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm