LuciferYang commented on a change in pull request #34153:
URL: https://github.com/apache/spark/pull/34153#discussion_r728613321



##########
File path: pom.xml
##########
@@ -2737,7 +2739,7 @@
             
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
             <junitxml>.</junitxml>
             <filereports>SparkTestSuite.txt</filereports>
-            <argLine>-ea -Xmx4g -Xss4m -XX:MaxMetaspaceSize=2g 
-XX:ReservedCodeCacheSize=${CodeCacheSize} 
-Dio.netty.tryReflectionSetAccessible=true</argLine>
+            <argLine>-ea -Xmx5g -Xss4m -XX:MaxMetaspaceSize=2g 
-XX:ReservedCodeCacheSize=${CodeCacheSize} ${extraJavaTestArgs} 
-Dio.netty.tryReflectionSetAccessible=true</argLine>

Review comment:
       @srowen  do you mean like the following code:
   
   ```
       val ref = new Array[Byte](1024 * 1024 * 2)
       val o = new ChunkedByteBufferOutputStream(1024 * 1024, 
ByteBuffer.allocate)
       (0 until 1024).foreach(_ => o.write(ref))
       assert(o.size > 0L) // make sure it is not overflowing
       assert(o.size == ref.length.toLong * 1024)
   ```
   use a small `ref(1g -> 2m)` and write more times(2 -> 1024)?  I tested this 
with Java 11 and heap OOM still occurs in
   
   
   




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to