House of Fusion
Home of the ColdFusion Community
Hostmysite Dedicated Hosting

Search cf-talk

September 07, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30         

Subscribe Now
Fusion Authority Quarterly Update - ColdFusion 8 Special Edition

For ColdFusion hosting try HostMySite.com.
Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  ColdFusion Talk (CF-Talk)

error Cannot create cookie: path = /

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
This is the only cooke being created by CF:
Rich Tretola
10/21/04 12:32 P
Here are my stats:
Rich Tretola
10/22/04 12:55 P
Where do I edit this line:
Rich Tretola
10/22/04 01:54 P
So would 756 and 756 improve performance?
Rich Tretola
10/22/04 03:59 P
In this document:
Andrew Dixon
10/22/04 04:42 P
-XX:MaxPermSize=128m
Andrew Dixon
10/23/04 05:24 P
My numbers now look like this:
Rich Tretola
10/23/04 07:04 P

10/21/2004 06:01 AM
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

10/21/2004 11:52 AM
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

10/21/2004 12:32 PM
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:

10/21/2004 12:46 PM
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

10/21/2004 01:30 PM
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:

10/22/2004 11:47 AM
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:

10/22/2004 12:06 PM
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

10/22/2004 12:11 PM
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

10/22/2004 12:42 PM
Author:
Rich Tretola

How could I check the jvm memory and it there a way to increase it if I need to? Rich

10/22/2004 12:55 PM
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

10/22/2004 01:14 PM
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

10/22/2004 01:15 PM
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

10/22/2004 01:54 PM
Author:
Rich Tretola

Where do I edit this line: -Xms512m -Xmx512m  ? Rich

10/22/2004 02:13 PM
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.

10/22/2004 02:24 PM
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

10/22/2004 03:40 PM
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.

10/22/2004 03:59 PM
Author:
Rich Tretola

So would 756 and 756 improve performance? Rich

10/22/2004 04:19 PM
Author:
Rich Tretola

Where did you see these recomendations on MM's site? Rich > So would 756 and 756 improve performance? > > Rich >

10/22/2004 04:42 PM
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.

10/23/2004 12:57 PM
Author:
Rich Tretola

What do you have your  XX:MaxPermSize= set to? Rich

10/23/2004 05:24 PM
Author:
Andrew Dixon

-XX:MaxPermSize=128m > What do you have your  XX:MaxPermSize= set to? > > Rich

10/23/2004 06:47 PM
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

10/23/2004 07:04 PM
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?

10/23/2004 07:14 PM
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:

10/29/2004 06:29 AM
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

10/22/2004 12:56 PM
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

10/22/2004 01:06 PM
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


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists