The other two functions work fine. CFMX 6.1 on windows 2000 sp4.
Brook
At 08:41 AM 4/14/2004, you wrote:
>Awesome, that is exactly what I was looking for!
>
>
>And, it doesn't look like the server's restarting from what I can tell, I
>just wanted to make it would list it in the logs if it did...thanks for the
>help->
>
>
>Tyler S
>
> _____
>
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 14, 2004 11:19 AM
>To: CF-Talk
>Subject: RE: Check server memory and CFMX restarts>>>
>
>yes, restarts are logged in the server log. You should prob figure out why
>the restarts are occuring though, eh? You have an app with long running SQL
>or something?
>
>This will tell you the memory stuffs. Curteousy of Pete Frietag's blog.
><cfset runtime = CreateObject("java","java.lang.Runtime").getRuntime()>
><cfset freeMemory = runtime.freeMemory() / 1024 / 1024>
><cfset totalMemory = runtime.totalMemory() / 1024 / 1024>
><cfset maxMemory = runtime.maxMemory() / 1024 / 1024>
>
><cfoutput>
> Free Allocated Memory: #Round(freeMemory)#mb<br>
> Total Memory Allocated: #Round(totalMemory)#mb<br>
> Max Memory Available to JVM: #Round(maxMemory)#mb<br>
></cfoutput>
>
>Doug
>
>-----Original Message-----
>From: Tyler Silcox [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, April 14, 2004 10:38 AM
>To: CF-Talk
>Subject: Check server memory and CFMX restarts>>>
>
>Is there a way to check available memory for CFMX from code? (i.e. I do not
>have access to the physical server.)
>
>I've seen it done before for Java based custom tags, but I was wondering if
>there is a way to tell if CFMX is running out of memory (because I keep
>losing my application variables way before the specified timeouts.)
>
>And does CF record every time it restarts in the "server" log, or would it
>only be recorded in the actual server's log (from IIS for example)?
>
>Tyler S
> _____
> _____
>
>----------
>[<http://www.houseoffusion.com/lists.cfm/link=t:4>Todays Threads]
>[<http://www.houseoffusion.com/lists.cfm/link=i:4:159995>This Message]
>[<http://www.houseoffusion.com/lists.cfm/link=s:4>Subscription]
>[<http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=905.825.4>Fast
> Unsubscribe] [<http://www.houseoffusion.com/signin/>User Settings]
>
>----------
><http://www.houseoffusion.com/banners/view.cfm?bannerid=44>
>[]
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

