![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Garbage collection is a low-priority task. You're creating new objects at the rate of one a second over an hour. Netscape probably never bothers to do any garbage collection until the browser is more "idle" then you are allowing it to be at any point during the execution. As a result it just continues to request memory from the operating system (which the operating system is happy to provide up to and beyond the amount of physical memory present on the system). Once you exceed the amount of physical memory available, the operating system will begin to swap and you will have serious performance problems. Do you really want everyone using that page to be making requests to your Web server every second? Since you never display the image I'm guessing you're using it as some sort of "keep alive" session management or something? HTTP through a Web browser isn't really the proper medium for something that requires knowing if the client is connected every second. You're trying to drive a nail with a screwdriver. the example provided is designed to accelerate the problem so it happens in a half hour rather than a day. Being able to "drive a nail with a screwdriver" has earned me a pretty good living, and its what sets apart the men from the boys in the programming field. Bad programmers make excuses; Good programmers find solutions. |
|
Your management or customers aren't going to care how you got something done, only that the end result works well, is intuitive and doesnt cause a 2Ghz machine to run like an IBM XT (ie Java). It helps, of course, when the tools work as expected. |
|
Grant Wagner <gwagner (AT) agricoreunited (DOT) com |
#2
| |||
| |||
|
|
Dennis wrote: Garbage collection is a low-priority task. You're creating new objects at the rate of one a second over an hour. Netscape probably never bothers to do any garbage collection until the browser is more "idle" then you are allowing it to be at any point during the execution. As a result it just continues to request memory from the operating system (which the operating system is happy to provide up to and beyond the amount of physical memory present on the system). Once you exceed the amount of physical memory available, the operating system will begin to swap and you will have serious performance problems. Do you really want everyone using that page to be making requests to your Web server every second? Since you never display the image I'm guessing you're using it as some sort of "keep alive" session management or something? HTTP through a Web browser isn't really the proper medium for something that requires knowing if the client is connected every second. You're trying to drive a nail with a screwdriver. the example provided is designed to accelerate the problem so it happens in a half hour rather than a day. Being able to "drive a nail with a screwdriver" has earned me a pretty good living, and its what sets apart the men from the boys in the programming field. Bad programmers make excuses; Good programmers find solutions. And shysters use unreliable hacks to achieve a result until their hack comes unglued, then they blame their tools. Your management or customers aren't going to care how you got something done, only that the end result works well, is intuitive and doesnt cause a 2Ghz machine to run like an IBM XT (ie Java). It helps, of course, when the tools work as expected. They also expect it to work long-term and not break with the latest release of the latest "gee whiz" browser. |
![]() |
| Thread Tools | |
| Display Modes | |
| |