You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (Jira)" <ji...@apache.org> on 2019/09/10 15:30:00 UTC
[jira] [Commented] (ARROW-6500) [Java] How to use RootAllocator in
a low memory setting?
[ https://issues.apache.org/jira/browse/ARROW-6500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16926734#comment-16926734 ]
Wes McKinney commented on ARROW-6500:
-------------------------------------
You might bring this up on dev@
> [Java] How to use RootAllocator in a low memory setting?
> --------------------------------------------------------
>
> Key: ARROW-6500
> URL: https://issues.apache.org/jira/browse/ARROW-6500
> Project: Apache Arrow
> Issue Type: Bug
> Components: Java
> Affects Versions: 0.13.0
> Reporter: Andong Zhan
> Priority: Major
>
> When I run this simple code with JVM setting: "-Xmx64m"
> {code:java}
> package com.snowflake;
> import org.apache.arrow.memory.RootAllocator;
> public class TestArrow
> {
> public static void main(String args[]) throws Exception
> {
> new RootAllocator(Integer.MAX_VALUE);
> }
> }
> {code}
> and got the following error
> {code:java}
> Picked up JAVA_TOOL_OPTIONS: -Djavax.net.ssl.trustStore=/etc/pki/ca-trust/extracted/java/cacerts
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at org.apache.arrow.memory.BaseAllocator.createEmpty(BaseAllocator.java:263)
> at org.apache.arrow.memory.BaseAllocator.<init>(BaseAllocator.java:89)
> at org.apache.arrow.memory.RootAllocator.<init>(RootAllocator.java:34)
> at org.apache.arrow.memory.RootAllocator.<init>(RootAllocator.java:30)
> at com.snowflake.TestArrow.main(TestArrow.java:13)
> Caused by: java.lang.NullPointerException
> at io.netty.buffer.PooledByteBufAllocatorL$InnerAllocator.<init>(PooledByteBufAllocatorL.java:145)
> at io.netty.buffer.PooledByteBufAllocatorL.<init>(PooledByteBufAllocatorL.java:49)
> at org.apache.arrow.memory.AllocationManager.<clinit>(AllocationManager.java:61) ... 5 more
> Process finished with exit code 1
> {code}
> So how to use RootAllocator in such low memory case?
--
This message was sent by Atlassian Jira
(v8.3.2#803003)