<$BlogRSDURL$>
  Tuesday, March 16, 2004

Taking temperature of CFMX

As we know CFMX runs on top of J2EE(Java Virtual Machine). How do I find out how hot the coffee is boiling? Well, easy enough: ColdFusion Memory Usage Stats
Quick sample:

<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
Total Memory Allocated: #Round(totalMemory)#mb
Max Memory Available to JVM: #Round(maxMemory)#mb
</cfoutput>


UPDATE: This is a repost of ColdFusion Memory Usage Stats, thank you Freitag for pointing it out.
 

5 Comments:

Anonymous cpanel hosting webhosting said...

WEB HOSTING

Can I Help You.. Yes If you want to get on the web. If you want to start learning about creating a web site of your own.. go to http://webhost11.com. to find out more about cpanel hosting webhosting ... We can help find a web host for you.

4:03 PM  
Anonymous Anonymous said...

Learn how to install your Webserver Software & How to install PHP, MYSQL,PERL,PHPMYADMIN + MORE 100% FREE

YOU'LL DISCOVER...

How to host unlimited websites & domains for free.
How to install Webserver Software on your PC easily.
How to install PHP , MYSQL , PHPMYADMIN, PERL & ZEND... on your PC
Replicator site + MYSERVER Tutorials software to earn lots of money paid instantly to your PAYPAL account + how to promote it to millions 100% FREE.
And Much More...

Go here now : http://lnk.in/4cur

http://lnk.in/4cur

http://lnk.in/4cur

Thank you and hurry.

3:24 PM  
Anonymous Buy Levitra said...

Great article! Thanks.

11:57 PM  
Anonymous Phentermine said...

Thanks for interesting article.

5:46 AM  
Anonymous Anonimous said...

Excellent website. Good work. Very useful. I will bookmark!

8:27 PM  

Post a Comment

<< Home

Software Culture
ColdFusion
  03/01/2004 - 04/01/2004
  05/01/2004 - 06/01/2004
  07/01/2004 - 08/01/2004
  08/01/2004 - 09/01/2004
  09/01/2004 - 10/01/2004
  10/01/2005 - 11/01/2005
日常毒藥與養料
  Smart talk always right?
  Drools on AppFuse
  Braille, braille
  可愛提示
  The Dynamic SRC of IMG
  Preferred Locale on AppFuse
  告訴你為什麼程式不 work
  絲綢之路 2000:致命病毒
  AJAX on AppFuse
  1918
  Meet Mr. Writely
  網際網路的最後一頁
  小螞蟻最短篇
  健檢, e檢
  Open source ColdFusion
  八月半個
  自行其是
  Rich DHTML client
  cfspring, seriously
  三百萬民主補給站
  敏督利小插曲
  迷上喬治亞
  說故事
  Where are they?
  宿夢
  An Architect's View
  Martin Fowler
  Loud Thinking
  Raible Designs   fullasagoog
Home


Powered by Blogger