Netbeans PHP on Mac OS X: Memory leak

Asked By 0 points N/A Posted on -

Hello all

I have just started using Mac a few days ago but unfortunately I cannot use Netbeans (PHP).

I tried all available versions but all versions end up in the same problem.

Netbeans consumes all the  memory, and after 10-15 mins.

I get the following error on my screen:


The error says: "java.lang.OutOfMemoryError exception has occurred.

Click show details or see the messages.log file located in your /Users/tiben/.netbeans/dev/var/ log folder.


I am using MacBook Pro, 2.4 GHz, Core 2 Duo, 4 GB RAM, Mac OS X 10.5.6 (Leopard).

Java version: Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284, already tried 1.6.0, without success).

I have also tried overwriting the start options but with the same results.

If someone has any idea how to solve it, please let me know. I have tried my level best but now I am at my wits end.

Looking forward to your suggestions.

Kindest regards.

Best Answer by Sharath Reddy
Answered By 0 points N/A #138101

Netbeans PHP on Mac OS X: Memory leak


Hi there Jane Jimenez I searched some solution that may help you solve your problem.

If you encounter this error, all of your memory in the JVM was run out.

So to solve the problem you may change the memory budgeted by the JVM.

·          Use the –Xms and –Xmx command.

Example: MyApp budgeted 5 megabytes as minimum and budgeted 15 megabytes as the maximum.

So the final javascript would be :    java-Xms5m-Xmx15m Myapp


Best Answer
Best Answer
Answered By 572280 points N/A #138102

Netbeans PHP on Mac OS X: Memory leak


I think even if your MacBook Pro has plenty of installed RAM, your operating system is a bit older than what is required for the minimum requirements to run NetBeans IDE since you only have Mac OS X 10.5.

Although your hardware is capable of supporting NetBeans IDE because you have a 2.4GHz Core 2 Duo processor with 4 GB of installed RAM, NetBeans IDE is required to run on a Mac OS X 10.6 minimum and Mac OS X 10.7 which is the recommended operating system version. Below is the guide on how to properly install NetBeans IDE on a Mac computer.

Make sure the installer has been downloaded completely because incomplete download will make the installer corrupted. The installer uses the “.dmg” as file extension. Run the installer after downloading it then double-click the package icon. The package icon has the “.mpkg” file extension.

This immediately starts the installation wizard. When prompted with “This package will run a program to determine if the software can be installed”, click Continue. Accept the license agreement, select the drive when prompted in the “Select a Destination” page, and then hit Continue.

Now select the products you want to install, enter your administrator’s name and password and then click OK. This will now start the installation.

Before starting the installation, make sure to download the latest version of JDK from Oracle® | Java SE Downloads.

To view other methods of installing NetBeans IDE on Mac.

Login/Register to Answer

Related Questions