Giter VIP home page Giter VIP logo

Comments (4)

mdekstrand avatar mdekstrand commented on June 11, 2024

The key error is this:

Caused by: java.lang.OutOfMemoryError: Java heap space
at it.unimi.dsi.fastutil.doubles.DoubleArrays.grow(DoubleArrays.java:165)
at it.unimi.dsi.fastutil.doubles.DoubleArrayList.grow(DoubleArrayList.java:192)
at it.unimi.dsi.fastutil.doubles.DoubleArrayList.add(DoubleArrayList.java:206)
at org.grouplens.lenskit.scored.ScoredIdListBuilder.add(ScoredIdListBuilder.java:209)
at org.grouplens.lenskit.util.UnlimitedScoredItemAccumulator.put(UnlimitedScoredItemAccumulator.java:57)
at org.lenskit.knn.item.model.ItemItemModelBuilder.get(ItemItemModelBuilder.java:112)
at org.lenskit.knn.item.model.ItemItemModelBuilder.get(ItemItemModelBuilder.java:50)
at org.grouplens.grapht.Instantiators$ProviderInstantiator.instantiate(Instantiators.java:153)
... 12 more

That means that Java does not have enough memory. Try telling Java to use more memory with:

set JAVA_ARGS=-Xmx2g

(provided you have at least 4, preferably 8, GB of RAM on your system).

from lenskit-hello.

ChenKevin0123 avatar ChenKevin0123 commented on June 11, 2024

Im very excited to receive your reply!
I run the project in the command line, I just run
set JAVA_ARGS=-Xmx2g
in the command line,but it still didn't work. Should I add this sentence to lenskit-hello-master.bat or somewhere else?

from lenskit-hello.

ChenKevin0123 avatar ChenKevin0123 commented on June 11, 2024

I cannot wait to tell you that I succeed! I changed the system environment variables,“JAVA_OPTS=-Xms64m -Xmx1g”.
I didn‘t use 2g because when I set 2g,there’s another orror occured————Could not reserve enough space for 2097152KB object heap.
Anyway,it works!Thank you soooooo much and best wishes to you.

from lenskit-hello.

mdekstrand avatar mdekstrand commented on June 11, 2024

@ChenKevin0123 Glad to hear it's working.

Are you running a 32-bit Java? That's probably why 2G failed.

And evidently I had the wrong variable name (some things use ARGS, some OPTS, and I was going from memory). I would recommend setting JAVA_OPTS each terminal, though, using

set JAVA_OPTS=-Xmx1g

instead of setting a system environment variable. That way it only affects the program you want to run, rather than possibly affecting other programs on your system.

from lenskit-hello.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.