java.lang.OutOfMemoryError: Java heap space

GitHub | lanlover | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    按第二种方法配置,调用依赖解析Demo发生错误。

    GitHub | 9 months ago | lanlover
    java.lang.OutOfMemoryError: Java heap space

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Java heap space

      at com.hankcs.hanlp.dependency.nnparser.Matrix.load()
    2. com.hankcs.hanlp
      HanLP.parseDependency
      1. com.hankcs.hanlp.dependency.nnparser.Matrix.load(Matrix.java:1305)
      2. com.hankcs.hanlp.dependency.nnparser.NeuralNetworkParser.load(NeuralNetworkParser.java:259)
      3. com.hankcs.hanlp.dependency.nnparser.NeuralNetworkParser.load(NeuralNetworkParser.java:135)
      4. com.hankcs.hanlp.dependency.nnparser.parser_dll.<clinit>(parser_dll.java:34)
      5. com.hankcs.hanlp.dependency.nnparser.NeuralNetworkDependencyParser.parse(NeuralNetworkDependencyParser.java:53)
      6. com.hankcs.hanlp.dependency.AbstractDependencyParser.parse(AbstractDependencyParser.java:46)
      7. com.hankcs.hanlp.dependency.nnparser.NeuralNetworkDependencyParser.compute(NeuralNetworkDependencyParser.java:93)
      8. com.hankcs.hanlp.HanLP.parseDependency(HanLP.java:407)
      8 frames
    3. hanlp
      DemoDependencyParser.main
      1. hanlp.DemoDependencyParser.main(DemoDependencyParser.java:26)
      1 frame