Some googling of "FileNotFoundException cannot allocate memory" indicates that 
this is
fairly common when running in a VM that has very little RAM, as there is not 
enough heap
space even to create a linux process. Do you have a reasonable amount of RAM 
free on the
box?

Thanks
-Mark

> On Apr 29, 2016, at 9:29 AM, dale.chang13 <[email protected]> wrote:
> 
> Mark Payne wrote
>> Dale,
>> 
>> I haven't seen this issue personally. I don't believe it has to do with
>> content/flowfile
>> repo space. Can you check the logs/nifi-app.log file and give us the exact
>> error message
>> from the logs, with the stack trace if it is provided?
>> 
>> Thanks
>> -Mark
> 
> Sure, this is from one of the slave nodes. I hardly provides any
> information. I supposed I could do a jstat or a df -h.
> 
> I've also created a MonitorMemory Reporting Task, but I cannot seem to
> provide the correct names for the memory pool. The only one that works fine
> is G1 Old Gen memory pool
> 
> app.log wrote
>> 2016-04-29 10:16:28,027 ERROR [Timer-Driven Process Thread-6]
>> o.a.nifi.processors.standard.FetchFile
>> FetchFile[id=6c7482f2-5780-37c8-99a0-f2d87cbcbba9] Could not fetch file
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188512.txt from
>> file system for
>> StandardFlowFileRecord[uuid=1a2d7918-377e-4256-8610-1b12493eb16e,claim=StandardContentClaim
>> [resourceClaim=StandardResourceClaim[id=1461938937407-463,
>> container=default, section=463], offset=47518,
>> length=1268],offset=0,name=FW: FERC Daily News.msg,size=1268] due to
>> java.io.FileNotFoundException:
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188512.txt
>> (Cannot allocate memory); routing to failure:
>> java.io.FileNotFoundException:
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188512.txt
>> (Cannot allocate memory)
>> 
>> 2016-04-29 10:16:28,028 ERROR [Timer-Driven Process Thread-6]
>> o.a.nifi.processors.standard.FetchFile
>> FetchFile[id=6c7482f2-5780-37c8-99a0-f2d87cbcbba9] Could not fetch file
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188518.txt from
>> file system for
>> StandardFlowFileRecord[uuid=3b5fef42-2ded-47cc-aba2-6caf95f04977,claim=StandardContentClaim
>> [resourceClaim=StandardResourceClaim[id=1461938937407-463,
>> container=default, section=463], offset=48786,
>> length=1640],offset=0,name=FW: FERC Docket No. EL01-47:  Removing
>> Obstacles To Increased Eleu0020ctri c Generation And Natural Gas Supply In
>> The Western United States.msg,size=1640] due to
>> java.io.FileNotFoundException:
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188518.txt
>> (Cannot allocate memory); routing to failure:
>> java.io.FileNotFoundException:
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188518.txt
>> (Cannot allocate memory)
>> 
>> 2016-04-29 10:16:28,029 ERROR [Timer-Driven Process Thread-8]
>> o.a.nifi.processors.standard.FetchFile
>> FetchFile[id=6c7482f2-5780-37c8-99a0-f2d87cbcbba9] Could not fetch file
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188526.txt from
>> file system for
>> StandardFlowFileRecord[uuid=71715448-2acd-4f5c-af57-9209461fe62e,claim=StandardContentClaim
>> [resourceClaim=StandardResourceClaim[id=1461938937407-463,
>> container=default, section=463], offset=50426,
>> length=1272],offset=0,name=FW: workshop notice.msg,size=1272] due to
>> java.io.FileNotFoundException:
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188526.txt
>> (Cannot allocate memory); routing to failure:
>> java.io.FileNotFoundException:
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188526.txt
>> (Cannot allocate memory)
>> 
>> 2016-04-29 10:16:28,030 ERROR [Timer-Driven Process Thread-9]
>> o.a.nifi.processors.standard.FetchFile
>> FetchFile[id=6c7482f2-5780-37c8-99a0-f2d87cbcbba9] Could not fetch file
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188534.txt from
>> file system for
>> StandardFlowFileRecord[uuid=0bf8666b-a9bc-4412-905e-6e4a2b13253d,claim=StandardContentClaim
>> [resourceClaim=StandardResourceClaim[id=1461938937407-463,
>> container=default, section=463], offset=51698,
>> length=1440],offset=0,name=FW: Final Report on Workshop Report to Discuss
>> Alternative Gas Inu0020dice s.msg,size=1440] due to
>> java.io.FileNotFoundException:
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188534.txt
>> (Cannot allocate memory); routing to failure:
>> java.io.FileNotFoundException:
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188534.txt
>> (Cannot allocate memory)
>> 
>> 2016-04-29 10:16:28,034 ERROR [Timer-Driven Process Thread-3]
>> o.a.nifi.processors.standard.FetchFile
>> FetchFile[id=6c7482f2-5780-37c8-99a0-f2d87cbcbba9] Could not fetch file
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188558.txt from
>> file system for
>> StandardFlowFileRecord[uuid=805d4127-d86b-4b4b-a7a0-9f6f300dc13e,claim=StandardContentClaim
>> [resourceClaim=StandardResourceClaim[id=1461938937407-463,
>> container=default, section=463], offset=54433,
>> length=1334],offset=0,name=FW: Proposed NARUC resolution on
>> hedging.msg,size=1334] due to java.io.FileNotFoundException:
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188558.txt
>> (Cannot allocate memory); routing to failure:
>> java.io.FileNotFoundException:
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188558.txt
>> (Cannot allocate memory)
>> 
>> 2016-04-29 10:16:28,035 ERROR [Timer-Driven Process Thread-3]
>> o.a.nifi.processors.standard.FetchFile
>> FetchFile[id=6c7482f2-5780-37c8-99a0-f2d87cbcbba9] Could not fetch file
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188570.txt from
>> file system for
>> StandardFlowFileRecord[uuid=38ee3345-fa72-459c-92f0-7fc2d58160ba,claim=StandardContentClaim
>> [resourceClaim=StandardResourceClaim[id=1461938937407-463,
>> container=default, section=463], offset=55767,
>> length=1557],offset=0,name=Merchant Group Memo from Daniel
>> Allegretti.msg,size=1557] due to java.io.FileNotFoundException:
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188570.txt
>> (Cannot allocate memory); routing to failure:
>> java.io.FileNotFoundException:
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188570.txt
>> (Cannot allocate memory)
>> 
>> 2016-04-29 10:16:28,036 ERROR [Timer-Driven Process Thread-2]
>> o.a.nifi.processors.standard.FetchFile
>> FetchFile[id=6c7482f2-5780-37c8-99a0-f2d87cbcbba9] Could not fetch file
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188583.txt from
>> file system for
>> StandardFlowFileRecord[uuid=a6a69ead-1c1e-4e52-9cf1-536f065f4e84,claim=StandardContentClaim
>> [resourceClaim=StandardResourceClaim[id=1461938937407-463,
>> container=default, section=463], offset=57324,
>> length=1450],offset=0,name=Thanksgiving pictures.msg,size=1450] due to
>> java.io.FileNotFoundException:
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188583.txt
>> (Cannot allocate memory); routing to failure:
>> java.io.FileNotFoundException:
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188583.txt
>> (Cannot allocate memory)
>> 
>> 2016-04-29 10:16:28,038 ERROR [Timer-Driven Process Thread-2]
>> o.a.nifi.processors.standard.FetchFile
>> FetchFile[id=6c7482f2-5780-37c8-99a0-f2d87cbcbba9] Could not fetch file
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188591.txt from
>> file system for
>> StandardFlowFileRecord[uuid=c23a560a-519f-4c34-9686-cda228fe3362,claim=StandardContentClaim
>> [resourceClaim=StandardResourceClaim[id=1461938937407-463,
>> container=default, section=463], offset=58774,
>> length=1420],offset=0,name=and more....msg,size=1420] due to
>> java.io.FileNotFoundException:
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188591.txt
>> (Cannot allocate memory); routing to failure:
>> java.io.FileNotFoundException:
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188591.txt
>> (Cannot allocate memory)
>> 
>> 2016-04-29 10:16:28,043 ERROR [Timer-Driven Process Thread-2]
>> o.a.nifi.processors.standard.FetchFile
>> FetchFile[id=6c7482f2-5780-37c8-99a0-f2d87cbcbba9] Could not fetch file
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188601.txt from
>> file system for
>> StandardFlowFileRecord[uuid=96f51398-8b92-485c-8e8f-a791f896ce9f,claim=StandardContentClaim
>> [resourceClaim=StandardResourceClaim[id=1461938937407-463,
>> container=default, section=463], offset=61578,
>> length=1349],offset=0,name=pix....msg,size=1349] due to
>> java.io.FileNotFoundException:
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188601.txt
>> (Cannot allocate memory); routing to failure:
>> java.io.FileNotFoundException:
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188601.txt
>> (Cannot allocate memory)
>> 
>> 2016-04-29 10:16:28,044 ERROR [Timer-Driven Process Thread-2]
>> o.a.nifi.processors.standard.FetchFile
>> FetchFile[id=6c7482f2-5780-37c8-99a0-f2d87cbcbba9] Could not fetch file
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188605.txt from
>> file system for
>> StandardFlowFileRecord[uuid=cdafaa63-b694-46da-9103-3da70e2c23ac,claim=StandardContentClaim
>> [resourceClaim=StandardResourceClaim[id=1461938937407-463,
>> container=default, section=463], offset=62927,
>> length=1361],offset=0,name=more of.....msg,size=1361] due to
>> java.io.FileNotFoundException:
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188605.txt
>> (Cannot allocate memory); routing to failure:
>> java.io.FileNotFoundException:
>> /tmp/hddCobrasan/Export1/VOL000001/TEXT/TEXT000001/ENR-00188605.txt
>> (Cannot allocate memory)
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://apache-nifi-developer-list.39713.n7.nabble.com/FetchFile-Cannot-Allocate-Enough-Memory-tp9720p9724.html
> Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.

Reply via email to