|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
error Cannot create cookie: path = /
Author: Rich Tretola
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182910
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
----- Excess quoted text cut - see Original Post for more -----
Author: Josh
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182435
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:
----- Excess quoted text cut - see Original Post for more -----
Author: Rich Tretola
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182434
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: Rich Tretola
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182433
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
----- Excess quoted text cut - see Original Post for more -----
Author: Andrew Dixon
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182431
-XX:MaxPermSize=128m
> What do you have your XX:MaxPermSize= set to?
>
> Rich
Author: Rich Tretola
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182424
What do you have your XX:MaxPermSize= set to?
Rich
----- Excess quoted text cut - see Original Post for more -----
Author: Andrew Dixon
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182399
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.
----- Excess quoted text cut - see Original Post for more -----
Author: Rich Tretola
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182395
Where did you see these recomendations on MM's site?
Rich
> So would 756 and 756 improve performance?
>
> Rich
Author: Rich Tretola
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182391
So would 756 and 756 improve performance?
Rich
Author: Andrew Dixon
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182387
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.
----- Excess quoted text cut - see Original Post for more -----
Author: Rich Tretola
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182367
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
----- Excess quoted text cut - see Original Post for more -----
Author: Andrew Dixon
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182364
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.
----- Excess quoted text cut - see Original Post for more -----
Author: Rich Tretola
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182361
Where do I edit this line:
-Xms512m -Xmx512m ?
Rich
----- Excess quoted text cut - see Original Post for more -----
Author: Douglas Knudsen
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182356
drat! forgot to mention, that info was for CFMX on JRun, the J2EE
install. I dunno if its sim to the standalone install.
Doug
----- Excess quoted text cut - see Original Post for more -----
Author: Douglas Knudsen
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182355
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
----- Excess quoted text cut - see Original Post for more -----
Author: Rich Tretola
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182353
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
----- Excess quoted text cut - see Original Post for more -----
Author: Douglas Knudsen
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182351
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
----- Excess quoted text cut - see Original Post for more -----
Author: Rich Tretola
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182350
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
----- Excess quoted text cut - see Original Post for more -----
Author: Rich Tretola
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182348
How could I check the jvm memory and it there a way to increase it if I need to?
Rich
----- Excess quoted text cut - see Original Post for more -----
Author: Dave Watts
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182343
> 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: Dave Watts
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182341
> 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: Rich Tretola
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182338
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:
----- Excess quoted text cut - see Original Post for more -----
Author: Rich Tretola
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182230
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:
----- Excess quoted text cut - see Original Post for more -----
Author: Dave Watts
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182218
----- Excess quoted text cut - see Original Post for more -----
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
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182212
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:
----- Excess quoted text cut - see Original Post for more -----
Author: Dave Watts
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182199
----- Excess quoted text cut - see Original Post for more -----
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
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:36120#182154
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
|
May 24, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||