Skip to main content
Participant
February 17, 2009
Question

Large Arrays

  • February 17, 2009
  • 1 reply
  • 759 views
I am working for a client who is generating very complex reports by using extremely large arrays. In some instances there is a 3-D array that gets to 100,000 lines long. I tried to look at it with cftrace and I was able to paste it into a Word document which ended up being 1300 pages long! It is hogging so much memory that the system grinds to a halt. They are resistant to putting this functionality into the database or any other change since it is so complex that a rewrite would take weeks. Is there a recommended limit on array size in Coldfusion 8? Any input appreciated!
This topic has been closed for replies.

1 reply

Inspiring
February 17, 2009
RSWARING wrote:
> Is there a recommended limit on array size in
> Coldfusion 8? Any input appreciated!
>


The same as any computer system. The recommendation is that when one
runs out of memory, one needs to rework ones application.

Are you able to make use of ColdFusion's multi-home capabilities? If
so, you can move this memory hog to its own instance and give it its own
memory allotment. This of course depends on you controlling your own
server(s), that you are using an Enterprise version of ColdFusion and
have hardware with enough resources to be divided among multiple instances.