How to change java.io.tmpdir in system properties

Avatar

Avatar
Validate 10
Level 3
chung_yonge1684
Level 3

Likes

16 likes

Total Posts

91 posts

Correct reply

3 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile

Avatar
Validate 10
Level 3
chung_yonge1684
Level 3

Likes

16 likes

Total Posts

91 posts

Correct reply

3 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
chung_yonge1684
Level 3

30-11-2018

Hello Everypne,

In order to change the java.io.tmpdir to 'C:\Adobe\AEM\Author\cq-temp', I changed like the below that  in C:\Adobe\AEM\Author\crx-quickstart\bin\start.bat

::* -------------------

::* Default JVM options

::* -------------------

set CQ_JVM_OPTS=-server

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Djava.awt.headless=true

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Xms8192m

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Xmx8192m

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -XX:MaxMetaspaceSize=512m

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -XX:NewRatio=1

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -XX:MaxTenuringThreshold=15

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -XX:+UseConcMarkSweepGC

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -XX:ConcGCThreads=4

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -XX:ParallelGCThreads=4

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Djava.io.tmpdir=C:\Adobe\AEM\Author\cq-temp

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -XX:+HeapDumpOnOutOfMemoryError

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -XX:HeapDumpPath=C:\Adobe\AEM\Author\cq-temp

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Doak.queryLimitInMemory=500000

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Doak.queryLimitReads=100000

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Dupdate.limit=250000

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Doak.fastQuerySize=true

But it doesn't  change.

1634474_pastedImage_1.png

My environment is the following :

-AEM 6.3

-Windows 10

-Java 1.8.1

Can you help me with mine?

Regards

Chung Yong.

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

01-12-2018

Avatar

Avatar
Validate 10
Level 3
chung_yonge1684
Level 3

Likes

16 likes

Total Posts

91 posts

Correct reply

3 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile

Avatar
Validate 10
Level 3
chung_yonge1684
Level 3

Likes

16 likes

Total Posts

91 posts

Correct reply

3 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
chung_yonge1684
Level 3

01-12-2018

When I upload the package file, java.lang.OutOfMemoryError : Java heap space happens.

I want to fix java.lang.OutOfMemoryError : Java heap space.

1635057_pastedImage_1.png

1635083_pastedImage_5.png

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,444 likes

Total Posts

3,322 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,444 likes

Total Posts

3,322 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

01-12-2018

You may need to increase heap memory

e.g.

-Xmx

The flag Xmx specifies the maximum memory allocation pool for a Java Virtual Machine (JVM), while Xms specifies the initial memory allocation pool. A common use for these flags is when you encounter a java.lang.OutOfMemoryError.

-Xms        set initial Java heap size

-Xmx        set maximum Java heap size

-Xss        set java thread stack size

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,135 likes

Total Posts

3,167 posts

Correct reply

1,080 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,135 likes

Total Posts

3,167 posts

Correct reply

1,080 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

02-12-2018

Have you restarted your instance?

Avatar

Avatar
Validate 10
Level 3
chung_yonge1684
Level 3

Likes

16 likes

Total Posts

91 posts

Correct reply

3 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile

Avatar
Validate 10
Level 3
chung_yonge1684
Level 3

Likes

16 likes

Total Posts

91 posts

Correct reply

3 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
chung_yonge1684
Level 3

02-12-2018

Yes, I have restared instance.

1637578_pastedImage_0.png

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,135 likes

Total Posts

3,167 posts

Correct reply

1,080 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,135 likes

Total Posts

3,167 posts

Correct reply

1,080 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

03-12-2018

"GC overhead limit excessed" means that you ran out of heap memory, not disk memory 🙂

Avatar

Avatar
Validate 10
Level 3
chung_yonge1684
Level 3

Likes

16 likes

Total Posts

91 posts

Correct reply

3 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile

Avatar
Validate 10
Level 3
chung_yonge1684
Level 3

Likes

16 likes

Total Posts

91 posts

Correct reply

3 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
chung_yonge1684
Level 3

03-12-2018

I have imported package1.zip successfully in Package Manager.

but we could not import contenct2.zip because of GC overhead limit exceeded

--------------------------------------------

package1.zip       : 20 MB

cotent2.zip          : 723 MB

Here is my JVM options.

set CQ_JVM_OPTS=-server

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Djava.awt.headless=true

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -XX:NewRatio=1

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -XX:+UseParallelGC

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -XX:+UseParallelOldGC

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -XX:ParallelGCThreads=4

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Xms8192m

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Xmx8192m

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -XX:PermSize=256m

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -XX:MaxPermSize=1024m

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Djava.io.tmpdir=C:\Adobe\AEM\Author\cq-temp

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -XX:+HeapDumpOnOutOfMemoryError

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -XX:HeapDumpPath=C:\Adobe\AEM\Author\cq-temp

set CQ_JVM_OPTS=%CQ_JVM_OPTS% -Djackrabbit.maxQueuedEvents=1000000

My environment is the following :

-AEM 6.3

-Windows 10

-RAM 8 GM.

-Java 1.8.1

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

03-12-2018

Do you have another instance to test with. As Joerg as pointed out, looks like memory issue with your server.

Avatar

Avatar
Validate 10
Level 3
chung_yonge1684
Level 3

Likes

16 likes

Total Posts

91 posts

Correct reply

3 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile

Avatar
Validate 10
Level 3
chung_yonge1684
Level 3

Likes

16 likes

Total Posts

91 posts

Correct reply

3 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
chung_yonge1684
Level 3

03-12-2018

My friend has the same environment with me.

-AEM 6.3

-Windows 10

-RAM 8 GM.

-Java 1.8.1

he has the same error(GC overhead limit exceeded)  with me.

Do we have to replace the ram size from 8 G to 16 G in order to fix the memory issue ?