ccccheese
ccccheese

Reputation: 15

sqldeveloper won't start with "java.lang.OutOfMemoryError: Direct buffer memory" error

I cannot open my sqldeveloper at the first time with the following error message, and the application just hangs on startup.

However, if I leave it there and try to open it again, then it works. If I close it and then open it again, then I will have the same error.

Does anyone know what the issue is and how to fix it? Any suggestion would be appreciated. Thanks.

java error when trying to open sqldeveloper

enter image description here

Upvotes: 0

Views: 1660

Answers (1)

thatjeffsmith
thatjeffsmith

Reputation: 22412

I've not seen this before, but

Find your product.conf file

In Windows, it's under your OS User, AppData, Roaming, sqldeveloper, 17.4 folder. In OS X/Linux, it's in $HOME/.sqldeveloper/17.4

Add this line

AddVMOption -XX:MaxDirectMemorySize=1G 

Save, try opening SQLDev again.

Upvotes: 3

Related Questions