RE: [ACFUG Discuss] ColdFusion debugging info
I'll just offer a counterpoint for folks to consider. :-) While Cam talks about the benefits of running CF from the command line (with the console output dumped to screen), I'll say that I don't myself like to do that for the very reason that I like the logs. I don't like that when the instance dies, all the info that went to the console is lost. For those who never noticed, the console output is logged by default to a coldfusion-out.log (or instance-out.log) when CF is not run from the command line. These -out.log files are stored in the [jrun]/logs in multiserver deployments and in [cf]/runtime/logs on Standard or Server deployments.Many mis them when they can in fact be quite vital to solving problems (whether in development or production). I realize of course that Cam is talking about running from the command line in development, and he's ok with reviewing the info as it appears in the console. I just prefer even in development to have access to the info after the fact. Different strokes. :-) Just wanted to share that observation if it may help some readers. (And to be clear, when I mentioned starting the service from the command line, that does NOT cause the creation of a console interface. The logs are created when CF is started with the jrunsvc command, which starts the service. What Cam is talking about now (and I above) is when one starts CF with the JRUN command instead.) Hope that's helpful. /charlie -Original Message- From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Cameron Childress Sent: Tuesday, December 08, 2009 1:52 PM To: discussion@acfug.org Subject: Re: [ACFUG Discuss] ColdFusion debugging info On Tue, Dec 8, 2009 at 10:25 AM, Charlie Arehart char...@carehart.org wrote: You may prefer to do this from the command line (or a shortcut) instead. While there are also jrunsvc options that could allow you to stop/start the instances Service from the command line as well, what I do instead is simply create a shortcut that calls the Windows services controller (net.exe) itself: To further expand on this, here's what I do... For development on my own local machine I set any CF Windows Services to manual so they don't start with the machine. I then use .bat files to start cfusion instances when I need to. I have startup scripts for CF7, CF8, and CF9 instances, some configured for specific clients. I have maybe 10 or so instances in all. I've created a folder on my Windows QuickStart bar and dropped all the bat files in it. When I want to startup a specific instance I just click the folder and select the instance I'd like to start. I start them in a console window, which also has the added benefit (for me) of showing any errors right there in the window. This means I don't have to look for logs when something silently fails, I just look at the console output. You can also set Flex Remoting data to dump into the console if you'd like to see it. Server needs a restart? CTRL+C the console to stop it and then run the bat file again. There are other ways to accomplish these same things, but that's what I have gotten comfortable with over the years... -Cameron - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -
Re: [ACFUG Discuss] ColdFusion debugging info
On Wed, Dec 9, 2009 at 9:59 AM, Charlie Arehart char...@carehart.org wrote: I don't like that when the instance dies, all the info that went to the console is lost. I guess that just doesn't happen to me much. ;) Another thing I didn't mention is that if you do choose to output all the Flex Remoting data to the console, it can hold up your Remoting responsiveness a bit. If you are pushing alot of data through Remoting or doing any form of performance analysis, don't output that stuff to the screen. I can say from experience that you never want to leave it open on the console in production... -Cameron -- Cameron Childress Sumo Consulting Inc http://www.sumoc.com --- cell: 678.637.5072 aim: cameroncf email: camer...@gmail.com - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -
RE: [ACFUG Discuss] ColdFusion debugging info
Thanks again Cam and Charlie! This has all been very helpful. Where is the best place to find info on the command line syntax and creating the .BAT files? I used to have this setup, but I'm still learning all the multi-server tricks! Thanks, Clarke -Original Message- From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Charlie Arehart Sent: Wednesday, December 09, 2009 9:59 AM To: discussion@acfug.org Subject: RE: [ACFUG Discuss] ColdFusion debugging info I'll just offer a counterpoint for folks to consider. :-) While Cam talks about the benefits of running CF from the command line (with the console output dumped to screen), I'll say that I don't myself like to do that for the very reason that I like the logs. I don't like that when the instance dies, all the info that went to the console is lost. For those who never noticed, the console output is logged by default to a coldfusion-out.log (or instance-out.log) when CF is not run from the command line. These -out.log files are stored in the [jrun]/logs in multiserver deployments and in [cf]/runtime/logs on Standard or Server deployments.Many mis them when they can in fact be quite vital to solving problems (whether in development or production). I realize of course that Cam is talking about running from the command line in development, and he's ok with reviewing the info as it appears in the console. I just prefer even in development to have access to the info after the fact. Different strokes. :-) Just wanted to share that observation if it may help some readers. (And to be clear, when I mentioned starting the service from the command line, that does NOT cause the creation of a console interface. The logs are created when CF is started with the jrunsvc command, which starts the service. What Cam is talking about now (and I above) is when one starts CF with the JRUN command instead.) Hope that's helpful. /charlie -Original Message- From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Cameron Childress Sent: Tuesday, December 08, 2009 1:52 PM To: discussion@acfug.org Subject: Re: [ACFUG Discuss] ColdFusion debugging info On Tue, Dec 8, 2009 at 10:25 AM, Charlie Arehart char...@carehart.org wrote: You may prefer to do this from the command line (or a shortcut) instead. While there are also jrunsvc options that could allow you to stop/start the instances Service from the command line as well, what I do instead is simply create a shortcut that calls the Windows services controller (net.exe) itself: To further expand on this, here's what I do... For development on my own local machine I set any CF Windows Services to manual so they don't start with the machine. I then use .bat files to start cfusion instances when I need to. I have startup scripts for CF7, CF8, and CF9 instances, some configured for specific clients. I have maybe 10 or so instances in all. I've created a folder on my Windows QuickStart bar and dropped all the bat files in it. When I want to startup a specific instance I just click the folder and select the instance I'd like to start. I start them in a console window, which also has the added benefit (for me) of showing any errors right there in the window. This means I don't have to look for logs when something silently fails, I just look at the console output. You can also set Flex Remoting data to dump into the console if you'd like to see it. Server needs a restart? CTRL+C the console to stop it and then run the bat file again. There are other ways to accomplish these same things, but that's what I have gotten comfortable with over the years... -Cameron - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=gin.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com - - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -
Re: [ACFUG Discuss] ColdFusion debugging info
The JRun docs are more useful than the CF docs about this stuff: http://livedocs.adobe.com/jrun/4/JRun_SDK_Guide/apis4.htm But essentially it's: jrun -start [instancename] That page also lists other option args, as well as notes on how to use the jrunsvc tool to create and modify ColdFusion Instances as Windows Services. -Cameron On Wed, Dec 9, 2009 at 10:30 AM, Clarke Bishop cbis...@resultantsys.com wrote: Thanks again Cam and Charlie! This has all been very helpful. Where is the best place to find info on the command line syntax and creating the .BAT files? I used to have this setup, but I'm still learning all the multi-server tricks! -- Cameron Childress Sumo Consulting Inc http://www.sumoc.com --- cell: 678.637.5072 aim: cameroncf email: camer...@gmail.com - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -
[ACFUG Discuss] more on ACFUG Holiday Party Next Week
Hey folks, some will have gotten an email on the announcements list about next week’s holiday part. I wanted to offer an update. While it mentioned Artuzzi’s for dinner and WhirlyBall after that, it didn’t mention the after party at ComputerArena, just around the corner. I’ve just updated the event page, so it will be in any future automated emails resending that announcement, but in case anyone cares to know the info beforehand, here is what I added (after the listing for WhirlyBall): After Whirlyball at Computer Arena Finally, following WhirlyBall, if you're up to it, we'll also go to ComputerArena which is both a nice bar and a gaming environment (XBox, PS2, Wii, etc.) with both individual gaming stations and rooms for things like RockBand. It's really a nice, friendly environment (and more adults than not in the evenings). Like the drinks at WhirlyBall, this will be dutch treat (on your own) but even if you don't care for gaming, the bar environment is conducive to conversation (also a pool table, and it's also Ladies' Night). The place is located just around the corner from WhirlyBall, at 10895 Alpharetta Hwy (Rt 9), Roswell, GA 30076 (facing Hwy 9, across the street and just south of Andretti Speed lab). It also happens to be undergoing a name change to US Gaming Arena, so the signs outside may change by the time of the party. /charlie PS I could have sent this just to the announcements list but I don’t do that often enough to recall how to do that correctly. This was faster. :-) From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of ma...@fusionlink.com Sent: Wednesday, December 09, 2009 4:10 AM To: announceme...@acfug.org Subject: [ACFUG Announce] ACFUG Holiday Party coming Next Week December 2009 Adobe User Groups Holiday Social Date http://www.acfug.org/images/clearpix.gif Wednesday, December 16, 2009 Dinner Schmoozing 6:00 PM Meeting Time 7:15 PM to 10:00 PM Location WhirlyBall Atlanta [Directions http://www.acfug.org/index.cfm?fa=home.meetinglocationeventid=328 ] Dress Anywhere from casual to business formal Price FREE! http://www.acfug.org/index.cfm?fa=rsvp.rsvpactionEventID=328 RSVP for this meeting! http://www.acfug.org/index.cfm?fa=meetings.vcalEventID=328 Add to Outlook calendar. Topics Dinner @ 6:00 PM Join us for dinner at Artuzzi's at our normal meeting time of 6:00 PM. Good Italian at a good price--and even better, we get a 10% off group discount. But most importantly, it's a time for fun with friends! Don't worry if you're a bit late--Artuzzi's is consistently fast! Artuzzi's is located just around the corner from WhirlyBall Atlanta; click here for the Mapquest map to Artuzzi's http://www.mapquest.com/maps?address=10779+Alpharetta+Hwyzipcode=30076 where you can get customized driving directions to Artuzzi's. Guests are welcome! WhirlyBall @ 7:15 PM After dinner, we'll head over to WhirlyBall Atlanta for our annual year-end social event! ACFUG will pay for the WhirlyBall court time; drinks at the WhirlyBar are dutch treat. What is WhirlyBall? Naturally, some of you do not have a clue what WhirlyBall is. You can get the scoop on the game http://www.whirlyballatlanta.com/topnav_whatiswb.asp and how http://www.whirlyballatlanta.com/leftnav_contact.asp to get to the facility on the Whirlyball Atlanta site http://www.whirlyballatlanta.com/ . And finally, on YouTube http://www.youtube.com/ you can watch a video http://www.youtube.com/watch?v=dmVOgCHuNV0 slideshow from our 2006 Holiday Social. You'll see pretty quickly that WhirlyBall is crazy, zany, silly, goofy, and so on and so forth--but that athletic skill and physical exertion are not required! It's a ton of fun; join us! - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/announcements%40acfug.org/ List hosted by http://www.fusionlink.com - - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -
RE: [ACFUG Discuss] ColdFusion debugging info
Well, let me restate: it's not that you lose it when the instance dies (which you say doesn't happen much) but simply it's not available after you close the console, which you would do after ending it. So really what it is is that you don't seem to need the data after that point, and fair enough. I will note as well that often the console has a limit of how many lines it will hold, so sometimes you won't be able even to page up in the console to be able to see what may have happened even seconds ago if something suddenly sends a flood of data to the console (like a lot of errors or a thread dump). Of course, the console history size is configurable (at least in Windows), so you may be able to get it to hold more. Anyway, I just may want it to review after the fact, which is why I don't want to lose it. Again, I'm not at all debating what you (Cam) are doing. Of course not, and I trust you know that. Just clarifying for others and offering these additional thoughts for them as they may contemplate this debate of whether to start instances from the command line or not (in development). /charlie -Original Message- From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Cameron Childress Sent: Wednesday, December 09, 2009 10:18 AM To: discussion@acfug.org Subject: Re: [ACFUG Discuss] ColdFusion debugging info On Wed, Dec 9, 2009 at 9:59 AM, Charlie Arehart char...@carehart.org wrote: I don't like that when the instance dies, all the info that went to the console is lost. I guess that just doesn't happen to me much. ;) Another thing I didn't mention is that if you do choose to output all the Flex Remoting data to the console, it can hold up your Remoting responsiveness a bit. If you are pushing alot of data through Remoting or doing any form of performance analysis, don't output that stuff to the screen. I can say from experience that you never want to leave it open on the console in production... -Cameron -- Cameron Childress Sumo Consulting Inc http://www.sumoc.com --- cell: 678.637.5072 aim: cameroncf email: camer...@gmail.com - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com - - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -
[ACFUG Discuss] WT Heck is this character? �
Can you see this character? It's a diamond with a question mark � How in the hell does one trap that? _ Derrick Peavy derr...@derrickpeavy.com 404-786-5036 “Innovation distinguishes between a leader and a follower.” -Steve Jobs _
[ACFUG Discuss] Re: [ACFUG Discuss] WT Heck is this character? �
trap? Do you mean prevent it from getting in your app? Use a whitelist. -dhs -- Dean H. Saxe A true conservationist is a person who knows that the world is not given by his fathers, but borrowed from his children. -- John James Audubon On Dec 9, 2009, at 7:09 PM, Derrick Peavy wrote: Can you see this character? It's a diamond with a question mark � How in the hell does one trap that? _ Derrick Peavy derr...@derrickpeavy.com 404-786-5036 “Innovation distinguishes between a leader and a follower.” -Steve Jobs _
[ACFUG Discuss] Re: [ACFUG Discuss] Re: [ACFUG Discuss] WT Heck is thi s character? �
Yes and yes. But let me refine the question - WHAT IS THE CHARACTER??? I cannot find a way to trap it and I don't know the ASCII or other chr() _ Derrick Peavy derr...@derrickpeavy.com 404-786-5036 “Innovation distinguishes between a leader and a follower.” -Steve Jobs _ On Dec 9, 2009, at 10:20 PM, Dean H. Saxe wrote: trap? Do you mean prevent it from getting in your app? Use a whitelist. -dhs -- Dean H. Saxe A true conservationist is a person who knows that the world is not given by his fathers, but borrowed from his children. -- John James Audubon On Dec 9, 2009, at 7:09 PM, Derrick Peavy wrote: Can you see this character? It's a diamond with a question mark � How in the hell does one trap that? _ Derrick Peavy derr...@derrickpeavy.com 404-786-5036 “Innovation distinguishes between a leader and a follower.” - Steve Jobs _