September 07, 2008
For ColdFusion hosting try HostMySite.com. |
Home /
Groups /
ColdFusion Talk (CF-Talk)
error Cannot create cookie: path = /
My default error log has a bunch of entries like this, the day changes:Rich Tretola 10/21/04 06:01 A > My default error log has a bunch of entries like this, theDave Watts 10/21/04 11:52 A This is the only cooke being created by CF:Rich Tretola 10/21/04 12:32 P > This is the only cooke being created by CF:Dave Watts 10/21/04 12:46 P That wasn't the test, that simply resets the cookie on close ofRich Tretola 10/21/04 01:30 P So what do you think? I notice that the exp day in the error isRich Tretola 10/22/04 11:47 A > That wasn't the test, that simply resets the cookie on closeDave Watts 10/22/04 12:06 P > So what do you think? I notice that the exp day in the errorDave Watts 10/22/04 12:11 P How could I check the jvm memory and it there a way to increase it if I need to?Rich Tretola 10/22/04 12:42 P Here are my stats:Rich Tretola 10/22/04 12:55 P there are numerous resources for this. Search the cf-talk archivesDouglas Knudsen 10/22/04 01:14 P drat! forgot to mention, that info was for CFMX on JRun, the J2EEDouglas Knudsen 10/22/04 01:15 P Where do I edit this line:Rich Tretola 10/22/04 01:54 P I have the same problem as this and already have the setting -Xms512mAndrew Dixon 10/22/04 02:13 P I just updated the other day and just started seeing these entries.Rich Tretola 10/22/04 02:24 P MM recommend setting the min and max to same value as it make CF moreAndrew Dixon 10/22/04 03:40 P So would 756 and 756 improve performance?Rich Tretola 10/22/04 03:59 P Where did you see these recomendations on MM's site?Rich Tretola 10/22/04 04:19 P In this document:Andrew Dixon 10/22/04 04:42 P What do you have your XX:MaxPermSize= set to?Rich Tretola 10/23/04 12:57 P -XX:MaxPermSize=128mAndrew Dixon 10/23/04 05:24 P Thanks for your help, I am going to change the min to be the same asRich Tretola 10/23/04 06:47 P My numbers now look like this:Rich Tretola 10/23/04 07:04 P Yes, caching queries will add to the amount of memory needed by CF.Josh 10/23/04 07:14 P My server is now running around 425 mbs in the windows task manager.Rich Tretola 10/29/04 06:29 A yeah, I've seen these errors in my logs too, odd. Using the sameDouglas Knudsen 10/22/04 12:56 P From the stats that I provided in my last post, it looks like I mayRich Tretola 10/22/04 01:06 P
Author: Rich Tretola
My default error log has a bunch of entries like this, the day changes: 10/20 11:35:34 error Cannot create cookie: expires = Fri 10/20 11:35:34 error Cannot create cookie: path = / 10/20 11:35:38 error Cannot create cookie: expires = Fri 10/20 11:35:38 error Cannot create cookie: path = / 10/20 11:35:40 error Cannot create cookie: expires = Fri 10/20 11:35:40 error Cannot create cookie: path = / Any ideas? Rich
Author: Dave Watts
> My default error log has a bunch of entries like this, the Can you show the code that you're using to create cookies? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444
Author: Rich Tretola
This is the only cooke being created by CF: <cfif IsDefined("cookie.cfid") AND IsDefined("cookie.cftoken")> <cfset localCFID = cookie.cfid> <cfset localCFTOKEN = cookie.cftoken> <cfcookie name="CFID" value="#localCFID#"> <cfcookie name="CFTOKEN" value="#localCFTOKEN#"> </cfif> Other than this, I have a cookie test but that is in javascript. Could the problem simply be that the cookie test is taking place after the cfcookie tag and those users are not allowing the cookie? Rich On Thu, 21 Oct 2004 11:58:18 -0400, Dave Watts <dwatts@figleaf.com> wrote:
Author: Dave Watts
> This is the only cooke being created by CF: I'm not sure what your cookie test is doing. However, rather than writing the cookies for each page request, you could do something like this instead: <cfapplication ... setclientcookies="no"> <cfif not IsDefined("Cookie.CFID")> <cfcookie name="CFID" value="#Session.CFID#"> <cfcookie name="CFTOKEN" value="#Session.CFTOKEN#"> </cfif> Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444
Author: Rich Tretola
That wasn't the test, that simply resets the cookie on close of browser so that the client is logged out automatically on browser close. I didn't show the test because it is a javascript test which should not bother JRun. Rich On Thu, 21 Oct 2004 12:51:47 -0400, Dave Watts <dwatts@figleaf.com> wrote:
Author: Rich Tretola
So what do you think? I notice that the exp day in the error is always 2 days from today which is my default timeout for application variable timeout. Rich On Thu, 21 Oct 2004 12:27:57 -0500, Rich Tretola <rtretola@gmail.com> wrote:
Author: Dave Watts
> That wasn't the test, that simply resets the cookie on close > of browser so that the client is logged out automatically on > browser close. I didn't show the test because it is a > javascript test which should not bother JRun. Right. My point about your code was that it resets the cookie on each page request, when it only needs to reset the cookie once. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444
Author: Dave Watts
> So what do you think? I notice that the exp day in the error > is always 2 days from today which is my default timeout for > application variable timeout. Actually, I think that the problem doesn't have anything to do with your code. I was at a client's site yesterday, and they had the same log errors. Their site was crashing frequently, and I think that they were having problems with the JVM running out of memory. So, you might want to look into that. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444
Author: Rich Tretola
How could I check the jvm memory and it there a way to increase it if I need to? Rich
Author: Rich Tretola
Here are my stats: Free Allocated Memory: 14mb Total Memory Allocated: 179mb Max Memory Available to JVM: 493mb % of Free Allocated Memory: 8% % of Available Memory Allocated: 36% Can I increase the memory available? Rich
Author: Douglas Knudsen
there are numerous resources for this. Search the cf-talk archives for sure. Here are some refs http://www.macromedia.com/support/coldfusion/ts/documents/cfmx_perf_tips.htm http://www.petefreitag.com/item/89.cfm http://www.talkingtree.com/blog/index.cfm?getCategory=ColdFusion&start=130 in short you mod the jvm.config file....modify the -xms and -xmx values for example -Xms512m -Xmx512m not to be raised to arbitrarily large values though, eh? Doug
Author: Douglas Knudsen
drat! forgot to mention, that info was for CFMX on JRun, the J2EE install. I dunno if its sim to the standalone install. Doug
Author: Rich Tretola
Where do I edit this line: -Xms512m -Xmx512m ? Rich
Author: Andrew Dixon
I have the same problem as this and already have the setting -Xms512m -Xmx512m and it doesn't help. Looking at my logs I think this problem only started with the install of CFMX6.1 Updater. Do you have the updater installed? Andrew.
Author: Rich Tretola
I just updated the other day and just started seeing these entries. The updater fixed many other problems through so it was worth it. Should I have a value set for my minimum heap size? Currently that field is blank and the max heap size field is at 512mb. Again. the machine has 2 gigs of ram. Rich
Author: Andrew Dixon
MM recommend setting the min and max to same value as it make CF more efficient as it doesn't have to do load of 'garbage collection'. I have mine set to 512 and 512 on a 1Gb RAM machine. Andrew.
Author: Rich Tretola
So would 756 and 756 improve performance? Rich
Author: Rich Tretola
Where did you see these recomendations on MM's site? Rich > So would 756 and 756 improve performance? > > Rich >
Author: Andrew Dixon
In this document: http://www.macromedia.com/support/coldfusion/ts/documents/cfmx_perf_tips.htm under the heading Memory, here is a quote: " For best performance, it's best to set your initial heap size and your maximum heap size to the same value." Andrew.
Author: Rich Tretola
What do you have your XX:MaxPermSize= set to? Rich
Author: Andrew Dixon
-XX:MaxPermSize=128m > What do you have your XX:MaxPermSize= set to? > > Rich
Author: Rich Tretola
Thanks for your help, I am going to change the min to be the same as the max. My cfserver has been using between 260 - 300mbs so I guess I will keep the min/max at 512 for now. Would caching some queries add to the total memory needed by CF? Rich
Author: Rich Tretola
My numbers now look like this: Free Allocated Memory: 417mb Total Memory Allocated: 502mb Max Memory Available to JVM: 502mb % of Free Allocated Memory: 83% % of Available Memory Allocated: 100% Would caching some queries add to the total memory needed by CF?
Author: Josh
Yes, caching queries will add to the amount of memory needed by CF. If I am not mistaken, cached queries are stored in memory... -- Exciteworks, Inc Expert Hosting for less! *Ask for a free 30 day trial!* http://exciteworks.com Plans starting at -$12.95- including MS SQL Server! Rich Tretola wrote:
Author: Rich Tretola
My server is now running around 425 mbs in the windows task manager. Do you think I should raise the heap size higher then 512mbs (maybe to 640 mbs or 768 mbs)? Right now the machine as a whole is using about 800mbs and I have 2 gigs of ram on the server. Rich
Author: Douglas Knudsen
yeah, I've seen these errors in my logs too, odd. Using the same technique as Rich here does. No JVM memory issues though. Doug
Author: Rich Tretola
From the stats that I provided in my last post, it looks like I may have jvm issues right? My machine has 2 gigs of ram so can I allocate more than 512 in the max heap size? Rich
|
Mailing Lists
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||