Comments (4)
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.
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.
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.
@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)
- Use Logback and provide simple configuration file
- Outdated Gradle wrapper version incompatible with IntelliJ HOT 1
- lenskit-hello project doesn't work well it seems incompatible packages HOT 2
- the output is always empty list of users HOT 3
- sh or bash to run? HOT 1
- GET Some ERROR when I run lenskit-hello HOT 3
- Gradle build fails due to sun.security.validator.ValidatorException despite installing certificates
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lenskit-hello.