[cfaussie] Re: ColdFusion 9 Server Memory Issues
Hi Sean, I notice Java 7 is due for release at end of July. With java 7 you get the released version of UseG1GC garbage collector - rather than experimental option in java 6. Cheers, Carl. Yeah, on 32-bit Windows, 1.4GB is the most you can give it. I pretty much never run CF in production with less than a 2GB heap (usually 2GB min, 3GB max) but of course I don't use Windows in production. On 64-bit servers you can go higher but if you go beyond 4GB, you need to be very careful about the GC configuration you use... Even tho' it's only experimental in Java 6, if you use a large heap, the G1 collector is worth trying (but, as always, it's all about load testing / real live load and constantly tuning the GC configuration to get the best overall performance). -- Sean A Corfield -- (904) 302-SEAN An Architect's View --http://corfield.org/ World Singles, LLC. --http://worldsingles.com/ Railo Technologies, Inc. --http://www.getrailo.com/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] Re: ColdFusion 9 Server Memory Issues
On Tue, Jul 12, 2011 at 11:08 PM, Carl ca...@tassweb.com.au wrote: I notice Java 7 is due for release at end of July. With java 7 you get the released version of UseG1GC garbage collector - rather than experimental option in java 6. Yup. but I don't know how quickly (or even if) Adobe will certify ColdFusion on Java 7... -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ Railo Technologies, Inc. -- http://www.getrailo.com/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] Re: CFbuilder2 thoughts?
back to the hanging problem, the good news is my swear jar just got richer, but I managed to capture a thread dump :) which I have sent thru to Sagar On Wed, Jul 13, 2011 at 9:26 AM, Brian Knott bkn...@jbk.com.au wrote: Got it thanks Charlie. -Original Message- From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of charlie arehart Sent: Wednesday, 13 July 2011 12:13 AM To: cfaussie@googlegroups.com Subject: RE: [cfaussie] Re: CFbuilder2 thoughts? Brian, that's indeed a frequent question. If you just google for coldfusion builder wrap you'll find several explanations of how to enable it, including my hidden gems in CF talk (on CFB1, most of which still applies to CFB2 so worth a read for those who haven't seen it). Or are you saying you've tried that feature and it doesn't work for you, perhaps? /charlie -Original Message- From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Brian Knott Sent: Tuesday, July 12, 2011 4:50 AM To: cfaussie@googlegroups.com Subject: RE: [cfaussie] Re: CFbuilder2 thoughts? Any idea how to get CF builder to wrap text? Brian -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. - No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1390 / Virus Database: 1516/3759 - Release Date: 07/11/11 -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- Zac Spitzer Solution Architect / Director Ennoble Consultancy Australia http://www.ennoble.com.au http://zacster.blogspot.com +61 405 847 168 -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] Re: CFbuilder2 thoughts?
Zac, Big pat on the back for you for sticking through this, and seeing if the problem can be resolved. Not many people would go as far as you, so kudos to you! Mark On Wed, Jul 13, 2011 at 4:31 PM, Zac Spitzer zac.spit...@gmail.com wrote: back to the hanging problem, the good news is my swear jar just got richer, but I managed to capture a thread dump :) which I have sent thru to Sagar On Wed, Jul 13, 2011 at 9:26 AM, Brian Knott bkn...@jbk.com.au wrote: Got it thanks Charlie. -Original Message- From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of charlie arehart Sent: Wednesday, 13 July 2011 12:13 AM To: cfaussie@googlegroups.com Subject: RE: [cfaussie] Re: CFbuilder2 thoughts? Brian, that's indeed a frequent question. If you just google for coldfusion builder wrap you'll find several explanations of how to enable it, including my hidden gems in CF talk (on CFB1, most of which still applies to CFB2 so worth a read for those who haven't seen it). Or are you saying you've tried that feature and it doesn't work for you, perhaps? /charlie -Original Message- From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Brian Knott Sent: Tuesday, July 12, 2011 4:50 AM To: cfaussie@googlegroups.com Subject: RE: [cfaussie] Re: CFbuilder2 thoughts? Any idea how to get CF builder to wrap text? Brian -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. - No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1390 / Virus Database: 1516/3759 - Release Date: 07/11/11 -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- Zac Spitzer Solution Architect / Director Ennoble Consultancy Australia http://www.ennoble.com.au http://zacster.blogspot.com +61 405 847 168 -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- E: mark.man...@gmail.com T: http://www.twitter.com/neurotic W: www.compoundtheory.com cf.Objective(ANZ) + Flex - Nov 17, 18 - Melbourne Australia http://www.cfobjective.com.au -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
[cfaussie] CreateObject of itself
Can anyone suggest a way i can create a new reference to a cfc that i am already in? Something like FooBar.cfc cfcomponent cfproperty name=fooProp type=string / cffunction name=bar output=false cfscript LOCAL.tmpArr = []; for (LOCAL.i = 1; LOCAL.i LTE 10; LOCAL.i = LOCAL.1+1) { LOCAL.tmpObj = new this; LOCAL.tmpObj.setfooBar(Some String #LOCAL.i#); ArrayAppend(LOCAL.tmpArr, LOCAL.tmpObj); } /cfscript /cffunction /cfcomponent Obviously new this; wont work. I want something to replace LOCAL.tmpObj = createObject(COMPONENT, FooBar); Ideas? Steve -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] CreateObject of itself
Hi Steve If you're just trying to avoid referencing the component name within itself, then why not try using local.metaData = GetMetaData(this); local.tmpObj = CreateObject(component, local.metaData.fullname).init(); You might want to check the docs to see if fullname is the correct key to reference, but this sort of idea should allow you to create an instance of the CFC you're currently in. Phil On 13/07/11 8:37 PM, Steve Onnis wrote: Can anyone suggest a way i can create a new reference to a cfc that i am already in? Something like FooBar.cfc cfcomponent cfproperty name=fooProp type=string / cffunction name=bar output=false cfscript LOCAL.tmpArr = []; *for* (LOCAL.i = 1; LOCAL.i LTE 10; LOCAL.i = LOCAL.1+1) { LOCAL.tmpObj = *new* this_;_ LOCAL.tmpObj.setfooBar(Some String #LOCAL.i#); *ArrayAppend*(LOCAL.tmpArr, LOCAL.tmpObj); } /cfscript /cffunction /cfcomponent Obviously new this; wont work. I want something to replace LOCAL.tmpObj = *createObject*(COMPONENT, FooBar); Ideas? Steve -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] CreateObject of itself
Duplicate works on CFC instances, so Duplicate(this) would work. Of course it also duplicates the state of the instances variables in 'this', so it might not be what you want. Otherwise, try CreateObject(component,GetMetaData(this).name) or maybe CreateObject(component,GetMetaData(this).fullname). I'm not sure which is better. -- Dennis On 13 July 2011 20:37, Steve Onnis st...@cfcentral.com.au wrote: Can anyone suggest a way i can create a new reference to a cfc that i am already in? ** ** Something like ** ** FooBar.cfc cfcomponent cfproperty name=fooProp type=string / cffunction name=bar output=false cfscript LOCAL.tmpArr = []; *for* (LOCAL.i = 1; LOCAL.i LTE 10; LOCAL.i = LOCAL.1+1) { LOCAL.tmpObj = *new* this*;* LOCAL.tmpObj.setfooBar(Some String #LOCAL.i#);** ** *ArrayAppend*(LOCAL.tmpArr, LOCAL.tmpObj); } /cfscript /cffunction /cfcomponent ** ** Obviously “new this;” wont work. ** ** I want something to replace LOCAL.tmpObj = *createObject*(COMPONENT, FooBar); ** ** Ideas? ** ** Steve -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] Re: ColdFusion 9 Server Memory Issues
FWIW - tried the G1 collector on Java 6 (_16 release iirc) for a large deployment on Win64/CF 8 for a while and had regular fatal JVM crashes. I'm pretty sure it has improved in later versions, but everyone be aware, that the G1 collector in Java 6 is _really_ experimental and it's not just a label Oracle sticked on to it :) Hi Sean, I notice Java 7 is due for release at end of July. With java 7 you get the released version of UseG1GC garbage collector - rather than experimental option in java 6. Cheers, Carl. Yeah, on 32-bit Windows, 1.4GB is the most you can give it. I pretty much never run CF in production with less than a 2GB heap (usually 2GB min, 3GB max) but of course I don't use Windows in production. On 64-bit servers you can go higher but if you go beyond 4GB, you need to be very careful about the GC configuration you use... Even tho' it's only experimental in Java 6, if you use a large heap, the G1 collector is worth trying (but, as always, it's all about load testing / real live load and constantly tuning the GC configuration to get the best overall performance). -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
RE: [cfaussie] CreateObject of itself
An you do something like new init() ? From: Dennis Clark [mailto:boomf...@gmail.com] Sent: Wednesday, 13 July 2011 8:58 PM To: cfaussie@googlegroups.com Subject: Re: [cfaussie] CreateObject of itself Duplicate works on CFC instances, so Duplicate(this) would work. Of course it also duplicates the state of the instances variables in 'this', so it might not be what you want. Otherwise, try CreateObject(component,GetMetaData(this).name) or maybe CreateObject(component,GetMetaData(this).fullname). I'm not sure which is better. -- Dennis On 13 July 2011 20:37, Steve Onnis st...@cfcentral.com.au wrote: Can anyone suggest a way i can create a new reference to a cfc that i am already in? Something like FooBar.cfc cfcomponent cfproperty name=fooProp type=string / cffunction name=bar output=false cfscript LOCAL.tmpArr = []; for (LOCAL.i = 1; LOCAL.i LTE 10; LOCAL.i = LOCAL.1+1) { LOCAL.tmpObj = new this; LOCAL.tmpObj.setfooBar(Some String #LOCAL.i#); ArrayAppend(LOCAL.tmpArr, LOCAL.tmpObj); } /cfscript /cffunction /cfcomponent Obviously new this; wont work. I want something to replace LOCAL.tmpObj = createObject(COMPONENT, FooBar); Ideas? Steve -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com mailto:cfaussie%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
[cfaussie] Re: CreateObject of itself
Hi Steve, I believe this is what your trying to achieve: http://pastebin.com/hJmsEvaA Running code: http://demo.kukiel.net/cfaussie.cfm Paul On Jul 13, 8:37 pm, Steve Onnis st...@cfcentral.com.au wrote: Can anyone suggest a way i can create a new reference to a cfc that i am already in? Something like FooBar.cfc cfcomponent cfproperty name=fooProp type=string / cffunction name=bar output=false cfscript LOCAL.tmpArr = []; for (LOCAL.i = 1; LOCAL.i LTE 10; LOCAL.i = LOCAL.1+1) { LOCAL.tmpObj = new this; LOCAL.tmpObj.setfooBar(Some String #LOCAL.i#); ArrayAppend(LOCAL.tmpArr, LOCAL.tmpObj); } /cfscript /cffunction /cfcomponent Obviously new this; wont work. I want something to replace LOCAL.tmpObj = createObject(COMPONENT, FooBar); Ideas? Steve -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] Re: ColdFusion 9 Server Memory Issues
On Wed, Jul 13, 2011 at 4:40 AM, Kai Koenig k...@koeni.de wrote: FWIW - tried the G1 collector on Java 6 (_16 release iirc) for a large deployment on Win64/CF 8 for a while and had regular fatal JVM crashes. I'm pretty sure it has improved in later versions, but everyone be aware, that the G1 collector in Java 6 is _really_ experimental and it's not just a label Oracle sticked on to it :) It was only introduced in _14 I believe and most folks says it was pretty unstable up to about _20. I've seen good reports of folks using it with _22 and up. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ Railo Technologies, Inc. -- http://www.getrailo.com/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
RE: [cfaussie] Re: CreateObject of itself
Thanks for that Paul On the line where you have LOCAL.tmpObj = new steve(local.i);, is the cfc steve.cfc? and are you meant to import anything else or can you do that with any cfc? -Original Message- From: Paul Kukiel [mailto:kuki...@gmail.com] Sent: Thursday, 14 July 2011 8:55 AM To: cfaussie Subject: [cfaussie] Re: CreateObject of itself Hi Steve, I believe this is what your trying to achieve: http://pastebin.com/hJmsEvaA Running code: http://demo.kukiel.net/cfaussie.cfm Paul On Jul 13, 8:37 pm, Steve Onnis st...@cfcentral.com.au wrote: Can anyone suggest a way i can create a new reference to a cfc that i am already in? Something like FooBar.cfc cfcomponent cfproperty name=fooProp type=string / cffunction name=bar output=false cfscript LOCAL.tmpArr = []; for (LOCAL.i = 1; LOCAL.i LTE 10; LOCAL.i = LOCAL.1+1) { LOCAL.tmpObj = new this; LOCAL.tmpObj.setfooBar(Some String #LOCAL.i#); ArrayAppend(LOCAL.tmpArr, LOCAL.tmpObj); } /cfscript /cffunction /cfcomponent Obviously new this; wont work. I want something to replace LOCAL.tmpObj = createObject(COMPONENT, FooBar); Ideas? Steve -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
[cfaussie] Re: ColdFusion 9 Server Memory Issues
On Jul 14, 11:40 am, Sean Corfield seancorfi...@gmail.com wrote: On Wed, Jul 13, 2011 at 4:40 AM, Kai Koenig k...@koeni.de wrote: FWIW - tried the G1 collector on Java 6 (_16 release iirc) for a large deployment on Win64/CF 8 for a while and had regular fatal JVM crashes. I'm pretty sure it has improved in later versions, but everyone be aware, that the G1 collector in Java 6 is _really_ experimental and it's not just a label Oracle sticked on to it :) It was only introduced in _14 I believe and most folks says it was pretty unstable up to about _20. I've seen good reports of folks using it with _22 and up. -- I have been running on a dev system CF9.0.1 with Java 7 preview version 21.0-b17. So far am impressed, particularly using G1. Tho Java 7 being preview it has not been near more vital / loaded CF environments – so early days. For those interested readers a very brief recap on garbage collection. The Java heap is divided into 3 regions: young, tenured/old, and perm. You may also know that young is further divided into eden and two survivor spaces. A minor garbage collection finds all live objects and puts them to one of the survivor spaces. Longer survived objects will eventually move into tenured/old space. Some special objects land in Perm. From what I have gathered the G1 collector memory is divided into multiple regions. Each of these regions will participate in a generation. Some will be young, some to survivor, and others to old. The collector is parallelized (multi-threaded) and will work concurrently with your application (low pause). The minor collection is similar to as current. There is a change to collection of regions that are tenured/old space, there will be no separate collector. Regards, Carl. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
RE: [cfaussie] Re: CreateObject of itself
Ok so if i have a cfc named FooBar.cfc, from within that CFC i can make a call new FooBar() and i will have a new instance of the CFC? -Original Message- From: Paul Kukiel [mailto:kuki...@gmail.com] Sent: Thursday, 14 July 2011 8:55 AM To: cfaussie Subject: [cfaussie] Re: CreateObject of itself Hi Steve, I believe this is what your trying to achieve: http://pastebin.com/hJmsEvaA Running code: http://demo.kukiel.net/cfaussie.cfm Paul On Jul 13, 8:37 pm, Steve Onnis st...@cfcentral.com.au wrote: Can anyone suggest a way i can create a new reference to a cfc that i am already in? Something like FooBar.cfc cfcomponent cfproperty name=fooProp type=string / cffunction name=bar output=false cfscript LOCAL.tmpArr = []; for (LOCAL.i = 1; LOCAL.i LTE 10; LOCAL.i = LOCAL.1+1) { LOCAL.tmpObj = new this; LOCAL.tmpObj.setfooBar(Some String #LOCAL.i#); ArrayAppend(LOCAL.tmpArr, LOCAL.tmpObj); } /cfscript /cffunction /cfcomponent Obviously new this; wont work. I want something to replace LOCAL.tmpObj = createObject(COMPONENT, FooBar); Ideas? Steve -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.