Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6556841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:59:46+00:00 2026-05-25T12:59:46+00:00

I’m using JMagick and have a simple Java class that loops over all images

  • 0

I’m using JMagick and have a simple Java class that loops over all images in a directory (and its sub directories), converting images into grayscale images.

After my application runs for a while the JVM crashes. I believe the error message in the log is possibly suggesting that there were memory issues:

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j
magick.MagickImage.writeImage(Lmagick/ImageInfo;)Z+0 j
com.example.ImageGenerator.generateAlternativeImages(Ljava/io/File;Z)V+91
j com.example.ImageGenerator.main([Ljava/lang/String;)V+58 v
~StubRoutines::call_stub

————— P R O C E S S —————

Java Threads: ( => current thread ) 0x0ab0c800 JavaThread “Low
Memory Detector” daemon [_thread_blocked, id=1532,
stack(0x0aec0000,0x0af10000)] 0x0ab0ac00 JavaThread
“CompilerThread0” daemon [_thread_blocked, id=7304,
stack(0x0ae70000,0x0aec0000)] 0x0aafe000 JavaThread “JDWP Command
Reader” daemon [_thread_in_native, id=6836,
stack(0x0ae20000,0x0ae70000)] 0x0aafc800 JavaThread “JDWP Event
Helper Thread” daemon [_thread_blocked, id=7248,
stack(0x0add0000,0x0ae20000)] 0x0aafa400 JavaThread “JDWP Transport
Listener: dt_socket” daemon [_thread_blocked, id=6252,
stack(0x0ad80000,0x0add0000)] 0x0aaee800 JavaThread “Attach
Listener” daemon [_thread_blocked, id=2020,
stack(0x0aca0000,0x0acf0000)] 0x0aaed400 JavaThread “Signal
Dispatcher” daemon [_thread_blocked, id=7492,
stack(0x0ac50000,0x0aca0000)] 0x0aada400 JavaThread “Finalizer”
daemon [_thread_blocked, id=5400, stack(0x0ac00000,0x0ac50000)]
0x0aad8c00 JavaThread “Reference Handler” daemon [_thread_blocked,
id=5772, stack(0x0abb0000,0x0ac00000)]
=>0x002b8000 JavaThread “main” [_thread_in_native, id=7020,
stack(0x008c0000,0x00910000)]

Other Threads: 0x0aad5400 VMThread [stack: 0x0ab60000,0x0abb0000]
[id=7720] 0x0ab0f000 WatcherThread [stack: 0x0af10000,0x0af60000]
[id=6432]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap def new generation total 960K, used 793K [0x029c0000,
0x02ac0000, 0x02ea0000) eden space 896K, 88% used [0x029c0000,
0x02a865f0, 0x02aa0000) from space 64K, 0% used [0x02aa0000,
0x02aa0000, 0x02ab0000) to space 64K, 0% used [0x02ab0000,
0x02ab0000, 0x02ac0000) tenured generation total 4096K, used 0K
[0x02ea0000, 0x032a0000, 0x069c0000) the space 4096K, 0% used
[0x02ea0000, 0x02ea0000, 0x02ea0200, 0x032a0000) compacting perm gen
total 12288K, used 2219K [0x069c0000, 0x075c0000, 0x0a9c0000) the
space 12288K, 18% used [0x069c0000, 0x06bead18, 0x06beae00,
0x075c0000) No shared spaces configured.

I’ve tried adding -Xmx options but figure this might not be the solution. Any suggestions?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T12:59:47+00:00Added an answer on May 25, 2026 at 12:59 pm

    Your JVM crashed, -Xmx will not help. Can you try running with -Xint and see if you can reproduce the problem? This will tell the JVM to run without Hotspot, which means no dynamic compilation optimizations. Which version of the JVM are you running with? If you can’t reproduce the problem with -Xint, and you’re using the latest JVM, you can try excluding only magick.MagickImage.writeImage from being compiled.

    To exclude, create a file in the applications working directory called:

    .hotspot_compiler 
    

    and add the line :

    exclude magick/MagickImage writeImage
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm making a simple page using Google Maps API 3. My first. One marker
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
In order to apply a triggered animation to all ToolTip s in my app,
Seemingly simple, but I cannot find anything relevant on the web. What is the
We're building an app, our first using Rails 3, and we're having to build
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.