To get the Memory usage on Railo (heap and non-heap), you can use the getMemoryUsage() function, like so: <cfdump var=’#getmemoryUsage(‘heap’)#’> <cfdump var=’#getmemoryUsage(“non_heap”)#’> Pretty simple. But something that isn’t well documented. I hope this helps someone! -Scott
Tag Archives: railo
ColdFusion CacheGet Variable Does Not Exist Gotcha
Standard Posted on November 5, 2013 1 CommentI am using Railo and EHCache to cache an array of 300,000 items from a database that need to be updated every 30 minutes. So, naturally, I use the CacheGet() and CachePut() functions. Here’s my code, really simple: <cfset cachedURLList = cacheGet(“URLList”)> Every few minutes I would get an error report from our server….”variable [CACHEDURLLIST] doesn’t exist”. I realized that CacheGet() must return the object by reference. I am only caching URLList for 5 minutes. I must have been making a request at the 4:30 minute mark, the requests each last 90…
Railo and the Microsoft SQL Server Native Driver
Standard Posted on October 18, 2013 Add CommentLast week I was working on a web crawler to crawl 250,000 URLs each night. We had 5 client crawlers running and connecting to a master MSSQL 2013 database. FusionGronker in ##coldfusion on freenode recommended that I try FusionReactor (a tool that allows you to monitor EVERYTHING that’s going on in your Java (ColdFusion) servers in real time. After many hours of debugging, I noticed every hour or so, a thread was getting stuck in a Native Method call. There was no way to kill the thread, since it was…