[cfaussie] JVM Heap Size

2008-05-11 Thread Steve Onnis
Can someone shed some light on what the JVM Heap Size is actually meant to do? For example, if I set it to the max heap size of 512mb, does that mean that the actual memory consumed by the jrun.exe should not exceed 512mb ? I have an issue where if the jrun.exe memory usage goes over say 600mb

[cfaussie] get the size of a folder using java

2008-05-11 Thread Steve Onnis
I was using the Scripting.FileSystemObject to get file sizes and folder sizes for one of my applications but now I am running on a 64 bit system and the Scripting.FileSystemObject is a 32 bit application so I cant use it now. For files I am using the java.io.File class to get the file sizes

[cfaussie] Re: get the size of a folder using java

2008-05-11 Thread Maximilian Nyman
There's no other way then recursively looping over all sub-directories/files. And if you used some tool to do it before, it too would have done the same thing. But it shouldn't be that painful really - One method, with a File object as the argument, looping over the listFiles array, IF directory

[cfaussie] Re: get the size of a folder using java

2008-05-11 Thread Andrew Scott
Steve, I am a little confused here, do you refer to the .Net Scripting.FileSystemObject or the Java one? And I am confused with your statement about not being able to run 32bit on 64bit, are you referring to java here? There is not 64bit JVM, it is all 32bit at the moment. I am confused as to

[cfaussie] Re: get the size of a folder using java

2008-05-11 Thread Steve Onnis
I am running Windows 2003 64 Bit server and 64 Bit CF 8.01 Ent now and I was getting an error saying E:\ColdFusion8\jintegra\bin\ntvinv.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform and it was happening when I was calling createObject(COM, Scripting.FileSystemObject) Making

[cfaussie] Re: get the size of a folder using java

2008-05-11 Thread Andrew Scott
Steve, Yep the missing link was that you are using a com object, and that really surprises me to be honest with you that it is a 32bit on a 64bit server. I am assuming Scripting.FileSystemObject is part of the OS and not a 3rd part product. One thing you could do is leverage .Net instead, but

[cfaussie] Re: get the size of a folder using java

2008-05-11 Thread Steve Onnis
I cant use IIS to enable 32 bit applications. I had it that way before cause I was running CF in 32 bit mode. Now that I am running 64 bit CF8 I had to disable iis running as a 32 bit process because cf wouldn't work. I think because cf is running as a 64 bit process now, it wont be able to run

[cfaussie] Re: get the size of a folder using java

2008-05-11 Thread Steve Onnis
I cant use IIS to enable 32 bit applications. I had it that way before cause I was running CF in 32 bit mode. Now that I am running 64 bit CF8 I had to disable iis running as a 32 bit process because cf wouldn't work. I think because cf is running as a 64 bit process now, it wont be able to run