Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Out Of Memory error in Eclipse Juno
Out Of Memory error in Eclipse Juno [message #1076361] Wed, 31 July 2013 08:54 Go to next message
michael m is currently offline michael mFriend
Messages: 3
Registered: July 2013
Junior Member
Hi guys,
first, I want to ask you sorry for my bad english.
I have a problem with Eclipse Juno.
The error that the software back to me is the following:

Exception in thread "main" java.sql.SQLException: out of memory
at org.sqlite.DB.throwex(DB.java:288)
at org.sqlite.NestedDB._open(NestedDB.java:73)
at org.sqlite.DB.open(DB.java:77)
at org.sqlite.Conn.<init>(Conn.java:88)
at org.sqlite.JDBC.connect(JDBC.java:64)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at ProvaDB1.main(ProvaDB1.java:10)


The line 10, is the line:

Connection conn = DriverManager.getConnection("jdbc:sqlite:db.db");

how you can understand, I'm trying to connect with a DataBase sqlite.
I have imported the sqlite JAR's file.

I read on web that the problem may be relative at memory allocated to eclipse, than i must rise this memory from Eclipse.ini file.

I have done it, my file eclipse.ini now is:



but, my problem persist.
The java code that i wrote is:

public class ProvaDB1 {
public static void main(String[] args) throws Exception{
Class.forName("org.sqlite.JDBC");
//try{
Connection conn = DriverManager.getConnection("jdbc:sqlite:db.db");
Statement stm = conn.createStatement();



stm.close();


conn.close();


this is all code that i wrote!

Just two month ago, I had an old PC with Windows 7, now I have a new PC with Windows 8 (4gb ram). With the old PC eclipse work very well, now....

I'm not able to solve this problem, thanks for all of you that can help me.

[Updated on: Wed, 31 July 2013 11:40]

Report message to a moderator

Re: Out Of Memory error in Eclipse Juno [message #1076447 is a reply to message #1076361] Wed, 31 July 2013 12:05 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31780
Registered: July 2009
Senior Member
Michael,

What's running out of heap space, the IDE (in which case increasing it
in the eclipse.ini will help) or in your own launched application (in
which case you need that option in the launch configuration for your
application).

On 31/07/2013 1:33 PM, michael m wrote:
> Hi guys,
> first, I want to ask you sorry for my bad english.
> I have a problem with Eclipse Juno.
> The error that the software back to me is the following:
>
>
> The line 10, is the line:
>
> Connection conn = DriverManager.getConnection("jdbc:sqlite:db.db");
>
> how you can understand, I'm trying to connect with a DataBase sqlite.
> I have imported the sqlite JAR's file.
>
> I read on web that the problem may be relative at memory allocated to
> eclipse, than i must rise this memory from Eclipse.ini file.
>
> I have done it, my file eclipse.ini now is:
>
>
>
> but, my problem persist.
> The java code that i wrote is:
>
> this is all code that i wrote!
>
> Just two month ago, I had an old PC with Windows 7, now I have a new
> PC with Windows 8 (4gb ram). With the old PC eclipse work very well,
> now....
>
> I'm not able to solve this problem, thanks for all of you that can
> help me.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Out Of Memory error in Eclipse Juno [message #1078794 is a reply to message #1076447] Sat, 03 August 2013 15:32 Go to previous messageGo to next message
michael m is currently offline michael mFriend
Messages: 3
Registered: July 2013
Junior Member
Thanks for your answer.
I have already increased the memory with eclipse.ini file but the problem persist.
My .ini file it's the following:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120522-1813
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms512m
-Xmx1024m
-XX:MaxPermSize=512m


thanks again.
Re: Out Of Memory error in Eclipse Juno [message #1078867 is a reply to message #1078794] Sat, 03 August 2013 18:17 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4003
Registered: July 2009
Senior Member

Your launched application is what's running out of memory, not Eclipse. You need to modify its launch configuration.

Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Out Of Memory error in Eclipse Juno [message #1079229 is a reply to message #1078867] Sun, 04 August 2013 07:58 Go to previous messageGo to next message
michael m is currently offline michael mFriend
Messages: 3
Registered: July 2013
Junior Member
Thanks for your answer!
But I'm not able to do what you say me to do.
how I have to do this?
which parameter I have to modify?

thanks again.
Re: Out Of Memory error in Eclipse Juno [message #1079551 is a reply to message #1079229] Sun, 04 August 2013 19:44 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 08/04/2013 01:58 AM, michael m wrote:
> Thanks for your answer!
> But I'm not able to do what you say me to do.
> how I have to do this?
> which parameter I have to modify?
>
> thanks again.

When you run your application, the one that's trying to open the SQLite
database, you have a "launch" or "run/debug configuration" whether
you're running the debugger or just running it. For the specific
application, you'll find tabs in that configuration that allow you to
specify arguments, environment variables, etc.

Hope this helps.
Previous Topic:How To Create proxy service xsd and wsdl based on business service xsd and wsdl
Next Topic:Subversive with WindowBuilder
Goto Forum:
  


Current Time: Sat Mar 06 14:52:40 GMT 2021

Powered by FUDForum. Page generated in 0.02944 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top