CFML restart ACF 10 app server service
Hi. What's the current best way to use CFML to restart ACF 10 app server service (on Windows server)? -- John Bliss - http://www.linkedin.com/in/jbliss ~| 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:359375 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFML restart ACF 10 app server service
I don't know if this is the best way but you can put the following text in a .bat file and run it using cfexecute. net stop ColdFusion 10 Application Server net start ColdFusion 10 Application Server cfexecute name = C:\somefolder\yourbatfile.bat /cfexecute HTH G! *Gerald Anthony Guido* Nullius in verba http://en.wikipedia.org/wiki/Nullius_in_verba -- Horace learn.geraldguido.com Twitter https://twitter.com/CozmoTrouble Facebook https://www.facebook.com/gerald.guido.9 On Wed, Oct 1, 2014 at 9:22 AM, John M Bliss bliss.j...@gmail.com wrote: Hi. What's the current best way to use CFML to restart ACF 10 app server service (on Windows server)? -- John Bliss - http://www.linkedin.com/in/jbliss ~| 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:359376 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFML restart ACF 10 app server service
we have a scheduled task setup to restart CF every morning. Since we have done this we have hardly any cf issues any more. On Wed, Oct 1, 2014 at 3:46 PM, Gerald Guido gerald.gu...@gmail.com wrote: I don't know if this is the best way but you can put the following text in a .bat file and run it using cfexecute. net stop ColdFusion 10 Application Server net start ColdFusion 10 Application Server cfexecute name = C:\somefolder\yourbatfile.bat /cfexecute HTH G! *Gerald Anthony Guido* Nullius in verba http://en.wikipedia.org/wiki/Nullius_in_verba -- Horace learn.geraldguido.com Twitter https://twitter.com/CozmoTrouble Facebook https://www.facebook.com/gerald.guido.9 On Wed, Oct 1, 2014 at 9:22 AM, John M Bliss bliss.j...@gmail.com wrote: Hi. What's the current best way to use CFML to restart ACF 10 app server service (on Windows server)? -- John Bliss - http://www.linkedin.com/in/jbliss ~| 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:359377 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFML restart ACF 10 app server service
And do you do it the way Gerald recommended...? On Wed, Oct 1, 2014 at 12:16 PM, Russ Michaels r...@michaels.me.uk wrote: we have a scheduled task setup to restart CF every morning. Since we have done this we have hardly any cf issues any more. On Wed, Oct 1, 2014 at 3:46 PM, Gerald Guido gerald.gu...@gmail.com wrote: I don't know if this is the best way but you can put the following text in a .bat file and run it using cfexecute. net stop ColdFusion 10 Application Server net start ColdFusion 10 Application Server cfexecute name = C:\somefolder\yourbatfile.bat /cfexecute HTH G! *Gerald Anthony Guido* Nullius in verba http://en.wikipedia.org/wiki/Nullius_in_verba -- Horace learn.geraldguido.com Twitter https://twitter.com/CozmoTrouble Facebook https://www.facebook.com/gerald.guido.9 On Wed, Oct 1, 2014 at 9:22 AM, John M Bliss bliss.j...@gmail.com wrote: Hi. What's the current best way to use CFML to restart ACF 10 app server service (on Windows server)? -- John Bliss - http://www.linkedin.com/in/jbliss ~| 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:359378 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFML restart ACF 10 app server service
we have a batch file which we run via a windows scheduled task, we don't do it via CF. On Wed, Oct 1, 2014 at 7:10 PM, John M Bliss bliss.j...@gmail.com wrote: And do you do it the way Gerald recommended...? On Wed, Oct 1, 2014 at 12:16 PM, Russ Michaels r...@michaels.me.uk wrote: we have a scheduled task setup to restart CF every morning. Since we have done this we have hardly any cf issues any more. On Wed, Oct 1, 2014 at 3:46 PM, Gerald Guido gerald.gu...@gmail.com wrote: I don't know if this is the best way but you can put the following text in a .bat file and run it using cfexecute. net stop ColdFusion 10 Application Server net start ColdFusion 10 Application Server cfexecute name = C:\somefolder\yourbatfile.bat /cfexecute HTH G! *Gerald Anthony Guido* Nullius in verba http://en.wikipedia.org/wiki/Nullius_in_verba -- Horace learn.geraldguido.com Twitter https://twitter.com/CozmoTrouble Facebook https://www.facebook.com/gerald.guido.9 On Wed, Oct 1, 2014 at 9:22 AM, John M Bliss bliss.j...@gmail.com wrote: Hi. What's the current best way to use CFML to restart ACF 10 app server service (on Windows server)? -- John Bliss - http://www.linkedin.com/in/jbliss ~| 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:359379 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFML restart ACF 10 app server service
Care to share the batch file? On Oct 1, 2014 5:56 PM, Russ Michaels r...@michaels.me.uk wrote: we have a batch file which we run via a windows scheduled task, we don't do it via CF. On Wed, Oct 1, 2014 at 7:10 PM, John M Bliss bliss.j...@gmail.com wrote: And do you do it the way Gerald recommended...? On Wed, Oct 1, 2014 at 12:16 PM, Russ Michaels r...@michaels.me.uk wrote: we have a scheduled task setup to restart CF every morning. Since we have done this we have hardly any cf issues any more. On Wed, Oct 1, 2014 at 3:46 PM, Gerald Guido gerald.gu...@gmail.com wrote: I don't know if this is the best way but you can put the following text in a .bat file and run it using cfexecute. net stop ColdFusion 10 Application Server net start ColdFusion 10 Application Server cfexecute name = C:\somefolder\yourbatfile.bat /cfexecute HTH G! *Gerald Anthony Guido* Nullius in verba http://en.wikipedia.org/wiki/Nullius_in_verba -- Horace learn.geraldguido.com Twitter https://twitter.com/CozmoTrouble Facebook https://www.facebook.com/gerald.guido.9 On Wed, Oct 1, 2014 at 9:22 AM, John M Bliss bliss.j...@gmail.com wrote: Hi. What's the current best way to use CFML to restart ACF 10 app server service (on Windows server)? -- John Bliss - http://www.linkedin.com/in/jbliss ~| 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:359380 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFML restart ACF 10 app server service
The simplest way would be to use these two commands net stop Servcie name net start Servcie name Thats all you really need to stop and start ANY Windows service from the command line on the local machine. You can eve use the NET command to access a remote Windows server to stop and start services. Regards, Wil Wil Genovese Sr. Web Application Developer/ Systems Administrator CF Webtools www.cfwebtools.com wilg...@trunkful.com www.trunkful.com On Oct 1, 2014, at 4:57 PM, John M Bliss bliss.j...@gmail.com wrote: Care to share the batch file? On Oct 1, 2014 5:56 PM, Russ Michaels r...@michaels.me.uk wrote: we have a batch file which we run via a windows scheduled task, we don't do it via CF. On Wed, Oct 1, 2014 at 7:10 PM, John M Bliss bliss.j...@gmail.com wrote: And do you do it the way Gerald recommended...? On Wed, Oct 1, 2014 at 12:16 PM, Russ Michaels r...@michaels.me.uk wrote: we have a scheduled task setup to restart CF every morning. Since we have done this we have hardly any cf issues any more. On Wed, Oct 1, 2014 at 3:46 PM, Gerald Guido gerald.gu...@gmail.com wrote: I don't know if this is the best way but you can put the following text in a .bat file and run it using cfexecute. net stop ColdFusion 10 Application Server net start ColdFusion 10 Application Server cfexecute name = C:\somefolder\yourbatfile.bat /cfexecute HTH G! *Gerald Anthony Guido* Nullius in verba http://en.wikipedia.org/wiki/Nullius_in_verba -- Horace learn.geraldguido.com Twitter https://twitter.com/CozmoTrouble Facebook https://www.facebook.com/gerald.guido.9 On Wed, Oct 1, 2014 at 9:22 AM, John M Bliss bliss.j...@gmail.com wrote: Hi. What's the current best way to use CFML to restart ACF 10 app server service (on Windows server)? -- John Bliss - http://www.linkedin.com/in/jbliss ~| 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:359381 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFML restart ACF 10 app server service
Just use the previously mentioned commands that is all you need On Wed, Oct 1, 2014 at 22:57 PM, John M Bliss bliss.j...@gmail.com wrote: Care to share the batch file? On Oct 1, 2014 5:56 PM, Russ Michaels r...@michaels.me.uk javascript:; wrote: we have a batch file which we run via a windows scheduled task, we don't do it via CF. On Wed, Oct 1, 2014 at 7:10 PM, John M Bliss bliss.j...@gmail.com javascript:; wrote: And do you do it the way Gerald recommended...? On Wed, Oct 1, 2014 at 12:16 PM, Russ Michaels r...@michaels.me.uk javascript:; wrote: we have a scheduled task setup to restart CF every morning. Since we have done this we have hardly any cf issues any more. On Wed, Oct 1, 2014 at 3:46 PM, Gerald Guido gerald.gu...@gmail.com javascript:; wrote: I don't know if this is the best way but you can put the following text in a .bat file and run it using cfexecute. net stop ColdFusion 10 Application Server net start ColdFusion 10 Application Server cfexecute name = C:\somefolder\yourbatfile.bat /cfexecute HTH G! *Gerald Anthony Guido* Nullius in verba http://en.wikipedia.org/wiki/Nullius_in_verba -- Horace learn.geraldguido.com Twitter https://twitter.com/CozmoTrouble Facebook https://www.facebook.com/gerald.guido.9 On Wed, Oct 1, 2014 at 9:22 AM, John M Bliss bliss.j...@gmail.com javascript:; wrote: Hi. What's the current best way to use CFML to restart ACF 10 app server service (on Windows server)? -- John Bliss - http://www.linkedin.com/in/jbliss ~| 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:359382 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Getting memory amount used
Hi, Would any one know some trick to get the amount of memory occupied by a structure like query, etc.? Thanks ~| 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:359383 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF10 creating extra CFID/CFTOKEN cookies at the domain level
I did what you suggested and thought that the problem had gone away. I was successful in getting any traffic to move to the www prefixed name but that didn't solve the cookie problem. I am having trouble creating the failure but I am still seeing duplicate cookies with the same CFID and CFTOKEN values. I would really like to eliminate these as I believe they are part of the problem I am trying to solve. What can cause CF10 to store duplicate cookies, one under the www subdomain and one at the higher level? ~| 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:359384 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CF10 creating extra CFID/CFTOKEN cookies at the domain level
If your Application has setclientcookies=yes, which is the default, a cookie/session will be created for each host used by the client to access the site. So domain.com,www.domain.com, 127.0.0.1, could all be the same physical web site, but would have 3 different cookies and sessions generated. You mentioned you setup a redirect to www. If the redirect is done via cflocation, then you would still see 2 CF cookies at the client, since the client actually is hitting both host names. A web server redirect would resolve this, so the client never really gets to domain.com as a CF request, hence no cfid/cftoken cookie. Another common issue I have seen is a login session occurring under www, but somewhere in the application a link goes to the non wwwîª host, which could result in a dropped session/login depending on how things are coded. Byron Mann Lead Engineer Architect HostMySite.com ~| 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:359385 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Getting memory amount used
Might be able to get this using Java. http://stackoverflow.com/questions/52353/in-java-what-is-the-best-way-to-determine-the-size-of-an-object For simpler objects maybe serialize the variable to json or wddx and do a regex to replace all the syntax characters and get the length. Fusion reactor or the builtin CF monitoring may get this granular for session variables. I cannot remember off hand. Byron Mann Lead Engineer Architect HostMySite.com ~| 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:359386 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm