web stats
Still don't know how to solve Java Heap Space Problem? - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 06-05-2018, 04:08 AM
TW27 TW27 is offline
What's HL7?
 
Join Date: Jan 2018
Posts: 2
TW27 is on a distinguished road
Default Still don't know how to solve Java Heap Space Problem?

Hi guys!
I want to covert csv to json file
First, I can use 16kb file through mirth connect
But I can't use 50mb file to process.
Even I change mcserver.vmoptions and mcservice.vmoptions file to Xmx2048M still have same problem.
I still don't know where the problem is.

Hope someone can help me. I'm newbie

Code:
[2018-06-05 19:57:30,456]  ERROR (com.mirth.connect.connectors.file.FileReceiver:435): Error processing file in channel: 26bdb1b3-0f79-49bb-a243-4efce165f065
com.mirth.connect.connectors.file.FileConnectorException: Error reading file /home/theo/ctmr-large.csvJava heap space
	at com.mirth.connect.connectors.file.FileReceiver.processFile(FileReceiver.java:371)
	at com.mirth.connect.connectors.file.FileReceiver.processFiles(FileReceiver.java:247)
	at com.mirth.connect.connectors.file.FileReceiver.poll(FileReceiver.java:203)
	at com.mirth.connect.donkey.server.channel.PollConnectorJob.execute(PollConnectorJob.java:49)
	at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)Caused by: java.lang.OutOfMemoryError: Java heap space
Reply With Quote
  #2  
Old 06-06-2018, 11:14 AM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 770
agermano is on a distinguished road
Default

Are you able to share any of your code or data structures? Maybe there are some optimizations that could be applied to reduce memory usage.
Reply With Quote
  #3  
Old 07-03-2018, 12:44 AM
TW27 TW27 is offline
What's HL7?
 
Join Date: Jan 2018
Posts: 2
TW27 is on a distinguished road
Default

Quote:
Originally Posted by agermano View Post
Are you able to share any of your code or data structures? Maybe there are some optimizations that could be applied to reduce memory usage.
Actually, I just use the file reader and file writer output file to another folder in the same server. So I don't write the code for this file. That's why I annoy about.
Reply With Quote
  #4  
Old 07-03-2018, 02:54 AM
kirbykn2's Avatar
kirbykn2 kirbykn2 is offline
Mirth Guru
 
Join Date: Sep 2014
Location: Michigan
Posts: 557
kirbykn2 is on a distinguished road
Default

Perhaps you can use the batch processor. Can you provide some more detail as to what you are doing?
__________________
Kirby

Mirth Certified|Epic Bridges Certified|Cloverleaf Level 2 Certified

Appliance Version 3.11.2
Mirth Connect Version 3.6.1
Java Version 1.6.0_45-b06
Java (64 bit) Version 1.6.0_45-b06
Java 7 (64 bit) Version 1.7.0_151-b15
Java 8 (64 bit) Version 1.8.0_121-b13
PostgreSQL Version 9.6.3
Reply With Quote
  #5  
Old 07-03-2018, 08:34 AM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 770
agermano is on a distinguished road
Default

csv won't convert itself to json, so there has to be something happening in a transformer... batch processing would likely help.
Reply With Quote
Reply

Tags
error, heap size, heap space, java

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 08:40 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation