Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Execution Issues with 21.2.0, not with 20.2.0

WeatherDaveAug 4 2021 — edited Aug 4 2021

Been using SQLDeveloper for several years. Never really had an issue with them until recently.
I downloaded 21.2.0 yesterday. I've got 20.2 as my go to, but like to test the newest version to make sure things work before switching over (given my failures to ever get '20.4.1' running). Had issues using 7-Zip to extract the archive, but the forum here helped me with those issues, and I used a different extractor to both test the archive and extract it.
So, 21.2.0 refuses to start for me. On a new execution I get a hung process I have to kill via TaskManager/Process Explorer.
If I execute the: C:\testing\sqldeveloper\sqldeveloper\bin\sqldeveloper.exe, I get:

Exception in thread "main" java.lang.OutOfMemoryError: unable to create new native thread
	at java.lang.Thread.start0(Native Method)
	at java.lang.Thread.start(Thread.java:717)
	at java.awt.EventQueue.initDispatchThread(EventQueue.java:1112)
	at java.awt.EventQueue.postEventPrivate(EventQueue.java:287)
	at java.awt.EventQueue.postEvent(EventQueue.java:262)
	at java.awt.EventQueue.invokeAndWait(EventQueue.java:1341)
	at java.awt.EventQueue.invokeAndWait(EventQueue.java:1324)
	at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1353)
	at oracle.ide.osgi.boot.SplashScreenImpl.SynchronizeWithEdt(SplashScreenImpl.java:537)
	at oracle.ide.osgi.boot.api.SplashScreen.createInstance(SplashScreen.java:66)
	at oracle.ide.osgi.boot.OracleIdeLauncher.showSplashScreen(OracleIdeLauncher.java:828)
	at oracle.ide.osgi.boot.OracleIdeLauncher.main(OracleIdeLauncher.java:109)

Diffing the two 'product.conf' files (in the '20.2.0' and '21.2.0' folders of 'C:\Users\myuser \Appdata\Roaming\ sqldeveloper') show no differences. Yet the '20.2.0 version starts and runs just fine.
Taking some tips from this forum, I tried adding :
AddVMOption -Xmx3072m
to the '21.2.0\product.conf' file, and got this failure:

Error occurred during initialization of VM
	Could not reserve enough space for 3145728KB object heap

(Later I also tried tweaking the -Xms values as well both singly and in combination to the -Xmx changes, but none of those ever helped either).
Now, this machine has 32G of memory, running a Ryzen 2700, on Windows 10 (20H2). The JDK is 1.8.0_301, which '20.2.0' seems to handle just fine. At the time I ran the '21.2.0' executable, my memory utilization was ~ 32%
As a test, I archived and deleted ALL the folders under 'C:\Users\myuser \Appdata\Roaming\ sqldeveloper' just to make sure everything was starting at the same point. No difference; 20.2.0 started just fine, 21.2.0 didn't.
Given the issues I had with 20.4.1 and now 21.2.0, there must have been some kind of underlying change to the product that seems to be tripping me up. Any suggestions?

Comments
Post Details
Added on Aug 4 2021
4 comments
1,238 views