| | |
Can Java handle this much data?
![]() |
•
•
Join Date: Jul 2008
Posts: 49
Reputation:
Solved Threads: 0
To keep things simple I have a spreadsheet that lists x and y values. I'm not sure how many of these data points there are but 13.5 million is a safe lower bound. Anyway, I wrote a program to parse this file and plot the points in jfreechart and the program ran out of memory.
I tried messing with the heap size, I have 4GB of RAM so I tried passing -Xms1024m -Xms2048m to java and was told it couldn't allocate that much space, I then halved those values and the program ran, didn't run out of memory, but the chart kind of just showed it's window border and I got that weird effect were the chart moved but didn't erase it's old position when I moved it(basically the program broke).
I could do all this fine in C so I'm wondering if I should just go back to it. Another thing is that I'd like to let less computer savvy people use this program and I doubt that they would want to mess with Heap Sizes, or use the command line. So can I adjust the heap from within the program(set the heap at the start of the main method or let the user set the heap through a dialog box)?
I tried messing with the heap size, I have 4GB of RAM so I tried passing -Xms1024m -Xms2048m to java and was told it couldn't allocate that much space, I then halved those values and the program ran, didn't run out of memory, but the chart kind of just showed it's window border and I got that weird effect were the chart moved but didn't erase it's old position when I moved it(basically the program broke).
I could do all this fine in C so I'm wondering if I should just go back to it. Another thing is that I'd like to let less computer savvy people use this program and I doubt that they would want to mess with Heap Sizes, or use the command line. So can I adjust the heap from within the program(set the heap at the start of the main method or let the user set the heap through a dialog box)?
![]() |
Similar Threads
- Data Entry Job (Internet Marketing Job Offers)
- Java, MySQL and Data Type Float (Java)
- Passing special characters from java to XSL throgh data XML (XML, XSLT and XPATH)
- Differences Between Java and C/C++ (C++)
- News Story: Java's open-sourcing beginning to pay off (C#)
- AJAX : Am i right with the concept? (JavaScript / DHTML / AJAX)
- Xml Database Connectivity in Java (Java)
- Data loss in Type Conversion. (C++)
- Where to get started with Web Programming (IT Professionals' Lounge)
Other Threads in the Java Forum
- Previous Thread: How to run a *.exe file in Java
- Next Thread: Voice Over IP (VoIP) Help needed
| Thread Tools | Search this Thread |
2dgraphics account android api apple applet application array arrays automation banking bidirectional binary binarytree birt bluetooth chat chatprogramusingobjects class client code columns component database derby design eclipse encryption error errors expand fractal game givemetehcodez graphics gui guidancer homework html ide if_statement image inheritance integer intellij interface j2me java javadesktopapplications javaprojects jlabel jme jni jpanel jtextfield julia linux list map method methods midlethttpconnection mobile mobiledevelopmentcreatejar monitoring myaggfun netbeans newbie nullpointerexception open-source problem program programming project property recursion reference ria scanner search server set sms sort sourcelabs splash sql sqlite static stop string support swing testautomation threads tree ui unicode validation windows






