#24148 [Opn->WFx]: increasing memory usage
| From: | sniper@php.net | Date: | Fri, 31 Oct 2003 02:12:06 +0000 |
| Subject: | #24148 [Opn->WFx]: increasing memory usage | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-49718@lists.php.net to get a copy of this message | ||
ID: 24148
Updated by: sniper@php.net
Reported By: ardo at np dot ee
-Status: Open
+Status: Wont fix
Bug Type: Java related
Operating System: Windows 2000
PHP Version: 4.3.3RC5-dev (cgi-fcgi) (built: Aug 19 2003 06:14:12)
New Comment:
Won't be fixed in PHP 4, PHP 5 propably will have better working Java
stuff in the future.
Previous Comments:
------------------------------------------------------------------------
[2003-06-12 08:39:40] ardo at np dot ee
Description:
------------
When using Java extension PHP seems to increase memory usage
constantly. When I used a very simple example, Windows Task Manager
showd that memory usage of php.exe constantly increased. When using
infinite loop I finally got java.lang.OutOfMemoryError.
Reproduce code:
---------------
$formatter = new Java('java.text.SimpleDateFormat', "EEEE, MMMM dd,
yyyy 'at' h:mm:ss a zzzz");
$date = new Java('java.util.Date');
while(1) {
$formatter->format($date);
}
Expected result:
----------------
Should be just infinite loop.
Actual result:
--------------
java.lang.OutOfMemoryError
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24148&edit=1