mirror of
https://github.com/apache/druid.git
synced 2025-02-17 23:46:30 +00:00
Provide chmod
command for -XX:OnOutOfMemoryError
from shell script (#17054)
A command line arg -XX:OnOutOfMemoryError='chmod 644 ${project.parent.basedir}/target/*.hprof' was added to collect heap dumps: #17029 This arg is causing problems when running tests from Intellij. Intellij doesn't seem to likechmod 644, but this command works as expected in mvn. So as a workaround, add the chmod 644 ${BASE_DIR/target/*.hprof' command in a shell script that can then be executed when OnOutOfMemoryError happens to make Intellij happy.
This commit is contained in:
parent
5ef94c9dee
commit
668169d9a9
19
dev/chmod-heap-dumps.sh
Executable file
19
dev/chmod-heap-dumps.sh
Executable file
@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash -eux
|
||||||
|
|
||||||
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
|
# contributor license agreements. See the NOTICE file distributed with
|
||||||
|
# this work for additional information regarding copyright ownership.
|
||||||
|
# The ASF licenses this file to You under the Apache License, Version 2.0
|
||||||
|
# (the "License"); you may not use this file except in compliance with
|
||||||
|
# the License. You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
BASE_DIR=$(git rev-parse --show-toplevel)
|
||||||
|
chmod 644 ${BASE_DIR}/target/*.hprof
|
2
pom.xml
2
pom.xml
@ -1778,7 +1778,7 @@
|
|||||||
-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager
|
-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager
|
||||||
-Daws.region=us-east-1 <!-- required for s3-related unit tests -->
|
-Daws.region=us-east-1 <!-- required for s3-related unit tests -->
|
||||||
-Ddruid.test.stupidPool.poison=true
|
-Ddruid.test.stupidPool.poison=true
|
||||||
-XX:OnOutOfMemoryError='chmod 644 ${project.parent.basedir}/target/*.hprof'
|
-XX:OnOutOfMemoryError=${project.parent.basedir}/dev/chmod-heap-dumps.sh
|
||||||
-XX:HeapDumpPath=${project.parent.basedir}/target
|
-XX:HeapDumpPath=${project.parent.basedir}/target
|
||||||
<!--@TODO After fixing https://github.com/apache/druid/issues/4964 remove this parameter-->
|
<!--@TODO After fixing https://github.com/apache/druid/issues/4964 remove this parameter-->
|
||||||
-Ddruid.indexing.doubleStorage=double
|
-Ddruid.indexing.doubleStorage=double
|
||||||
|
Loading…
x
Reference in New Issue
Block a user