Results 1 to 3 of 3
  1. #1
    monika is offline Member
    Join Date
    Mar 2010
    Rep Power

    Default out of memory error in weka

    Hi ,

    I am using weka which is a open source data mining software.When I am using large dataset,it gives me out of memory error.

    When I am trying to run a J48 algorithm,it gives an out of memory error and it suggesting me to increase Java virtual machine heap size

    In the comment promt-(C:\user\xyz> )

    I have typed the command

    java -Xmx1g -C:\Program Files\Weka-3-6\weka.jar

    "C:\Program Files\Weka-3-6\weka.jar"-the location of the jar file of weka
    But this did not work.

    Somewhere I have found the solution as
    java -Xmx1g -classpath /some/where/weka.jar

    Do I have to edit my class path

    I have also tried with editing my class path

    My previous class path
    .;C:\Program Files (x86)\Java\jre6\lib\ext\

    New one--
    .;C:\Program Files (x86)\Java\jre6\lib\ext\;C:\Program Files\Weka-3-6\Weka.jar

    But it also didnt work.

    Please let me know how to increase the heap size.

    Thank You

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Rep Power


    Don't cross-post. It is extremely rude, and your other thread has answers, already.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Colombo, Sri Lanka
    Blog Entries
    Rep Power

Similar Threads

  1. Out of memory error
    By Mrs. Deswal in forum Threads and Synchronization
    Replies: 3
    Last Post: 07-30-2009, 03:27 AM
  2. How to over come java.lang.out of memory error
    By Chaitra_gm in forum New To Java
    Replies: 5
    Last Post: 09-28-2008, 10:33 AM
  3. Out of memory error in eclipse
    By Java.child in forum New To Java
    Replies: 5
    Last Post: 09-05-2008, 04:50 PM
  4. Low memory error
    By rlhs76 in forum New To Java
    Replies: 2
    Last Post: 02-08-2008, 11:25 PM
  5. Java Heap Out of Memory Error
    By stonkers in forum New To Java
    Replies: 3
    Last Post: 07-17-2007, 04:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts