bug in UtilIO.copy(Reader reader, boolean closeIn, Appendable out)
------------------------------------------------------------------ Key: OFBIZ-4065 URL: https://issues.apache.org/jira/browse/OFBIZ-4065 Project: OFBiz Issue Type: Bug Affects Versions: SVN trunk Reporter: Jacques Le Roux If you append cmssite/cms/APACHE_OFBIZ_HTML to a local instance or the trunk demo, like (don't use it) https://demo-trunk.ofbiz.apache.org/cmssite/cms/APACHE_OFBIZ_HTML you will never get any result. It works at http://demo-trunk.businessesnetwork.com/cmssite/cms/APACHE_OFBIZ_HTML (BJ's demo instance) but I don't know why (and have no ways to find it out) I'm not quite sure the attached patch is the right solution, but at least it works locally. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
[ https://issues.apache.org/jira/browse/OFBIZ-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux updated OFBIZ-4065: ----------------------------------- Attachment: OFBIZ-4065_UtilIO.copy.patch It's related to OFBIZ-4052. I have not yet dug enough to commit the patch > bug in UtilIO.copy(Reader reader, boolean closeIn, Appendable out) > ------------------------------------------------------------------ > > Key: OFBIZ-4065 > URL: https://issues.apache.org/jira/browse/OFBIZ-4065 > Project: OFBiz > Issue Type: Bug > Affects Versions: SVN trunk > Reporter: Jacques Le Roux > Attachments: OFBIZ-4065_UtilIO.copy.patch > > > If you append cmssite/cms/APACHE_OFBIZ_HTML to a local instance or the trunk demo, like (don't use it) https://demo-trunk.ofbiz.apache.org/cmssite/cms/APACHE_OFBIZ_HTML you will never get any result. It works at http://demo-trunk.businessesnetwork.com/cmssite/cms/APACHE_OFBIZ_HTML (BJ's demo instance) but I don't know why (and have no ways to find it out) > I'm not quite sure the attached patch is the right solution, but at least it works locally. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972466#action_12972466 ] Jacques Le Roux commented on OFBIZ-4065: ---------------------------------------- I have commited in trunk, less pain for the demo... > bug in UtilIO.copy(Reader reader, boolean closeIn, Appendable out) > ------------------------------------------------------------------ > > Key: OFBIZ-4065 > URL: https://issues.apache.org/jira/browse/OFBIZ-4065 > Project: OFBiz > Issue Type: Bug > Affects Versions: SVN trunk > Reporter: Jacques Le Roux > Attachments: OFBIZ-4065_UtilIO.copy.patch > > > If you append cmssite/cms/APACHE_OFBIZ_HTML to a local instance or the trunk demo, like (don't use it) https://demo-trunk.ofbiz.apache.org/cmssite/cms/APACHE_OFBIZ_HTML you will never get any result. It works at http://demo-trunk.businessesnetwork.com/cmssite/cms/APACHE_OFBIZ_HTML (BJ's demo instance) but I don't know why (and have no ways to find it out) > I'm not quite sure the attached patch is the right solution, but at least it works locally. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux closed OFBIZ-4065. ---------------------------------- Resolution: Fixed Fix Version/s: SVN trunk Assignee: Jacques Le Roux I'm not quite sure it was the best way to fix this bug. But I have no time to dig in further for now. So I close for now > bug in UtilIO.copy(Reader reader, boolean closeIn, Appendable out) > ------------------------------------------------------------------ > > Key: OFBIZ-4065 > URL: https://issues.apache.org/jira/browse/OFBIZ-4065 > Project: OFBiz > Issue Type: Bug > Affects Versions: SVN trunk > Reporter: Jacques Le Roux > Assignee: Jacques Le Roux > Fix For: SVN trunk > > Attachments: OFBIZ-4065_UtilIO.copy.patch > > > If you append cmssite/cms/APACHE_OFBIZ_HTML to a local instance or the trunk demo, like (don't use it) https://demo-trunk.ofbiz.apache.org/cmssite/cms/APACHE_OFBIZ_HTML you will never get any result. It works at http://demo-trunk.businessesnetwork.com/cmssite/cms/APACHE_OFBIZ_HTML (BJ's demo instance) but I don't know why (and have no ways to find it out) > I'm not quite sure the attached patch is the right solution, but at least it works locally. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972612#action_12972612 ] BJ Freeman commented on OFBIZ-4065: ----------------------------------- still sounds like memory managent problems. 1) in JVM 2)OS swapfile management. 3)OS threads and timing. I am using java version "1.6.0_17" OpenJDK Runtime Environment (IcedTea6 1.7.5) (rhel-1.16.b17.el5-i386) OpenJDK Client VM (build 14.0-b16, mixed mode) on a Centos 5 platform. my start is the rc.ofbiz on local I a using windows XP with service pack 3 2 gigs total with 8gigs used at the time I run. I use ant run to run the local instance. > bug in UtilIO.copy(Reader reader, boolean closeIn, Appendable out) > ------------------------------------------------------------------ > > Key: OFBIZ-4065 > URL: https://issues.apache.org/jira/browse/OFBIZ-4065 > Project: OFBiz > Issue Type: Bug > Affects Versions: SVN trunk > Reporter: Jacques Le Roux > Assignee: Jacques Le Roux > Fix For: SVN trunk > > Attachments: OFBIZ-4065_UtilIO.copy.patch > > > If you append cmssite/cms/APACHE_OFBIZ_HTML to a local instance or the trunk demo, like (don't use it) https://demo-trunk.ofbiz.apache.org/cmssite/cms/APACHE_OFBIZ_HTML you will never get any result. It works at http://demo-trunk.businessesnetwork.com/cmssite/cms/APACHE_OFBIZ_HTML (BJ's demo instance) but I don't know why (and have no ways to find it out) > I'm not quite sure the attached patch is the right solution, but at least it works locally. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972612#action_12972612 ] BJ Freeman edited comment on OFBIZ-4065 at 12/17/10 2:51 PM: ------------------------------------------------------------- still sounds like memory managent problems. 1) in JVM 2)OS swapfile management. 3)OS threads and timing. I am using two 650 gig hard drives where the swap file is the only dynamic file on the second drive. swap file is 5.84 GB total / 3.34 GB free and memory 3.21 GB total / 380.64 MB free java version "1.6.0_17" OpenJDK Runtime Environment (IcedTea6 1.7.5) (rhel-1.16.b17.el5-i386) OpenJDK Client VM (build 14.0-b16, mixed mode) on a Centos 5 platform. my start is the rc.ofbiz on local I a using windows XP with service pack 3 2 gigs total with 8gigs used at the time I run. I use ant run to run the local instance. java version "1.6.0_19" Java(TM) SE Runtime Environment (build 1.6.0_19-b04) Java HotSpot(TM) Client VM (build 16.2-b04, mixed mode, sharing) 139 meg drive swapfile is 3.5 gigs was (Author: bjfreeman): still sounds like memory managent problems. 1) in JVM 2)OS swapfile management. 3)OS threads and timing. I am using java version "1.6.0_17" OpenJDK Runtime Environment (IcedTea6 1.7.5) (rhel-1.16.b17.el5-i386) OpenJDK Client VM (build 14.0-b16, mixed mode) on a Centos 5 platform. my start is the rc.ofbiz on local I a using windows XP with service pack 3 2 gigs total with 8gigs used at the time I run. I use ant run to run the local instance. > bug in UtilIO.copy(Reader reader, boolean closeIn, Appendable out) > ------------------------------------------------------------------ > > Key: OFBIZ-4065 > URL: https://issues.apache.org/jira/browse/OFBIZ-4065 > Project: OFBiz > Issue Type: Bug > Affects Versions: SVN trunk > Reporter: Jacques Le Roux > Assignee: Jacques Le Roux > Fix For: SVN trunk > > Attachments: OFBIZ-4065_UtilIO.copy.patch > > > If you append cmssite/cms/APACHE_OFBIZ_HTML to a local instance or the trunk demo, like (don't use it) https://demo-trunk.ofbiz.apache.org/cmssite/cms/APACHE_OFBIZ_HTML you will never get any result. It works at http://demo-trunk.businessesnetwork.com/cmssite/cms/APACHE_OFBIZ_HTML (BJ's demo instance) but I don't know why (and have no ways to find it out) > I'm not quite sure the attached patch is the right solution, but at least it works locally. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972625#action_12972625 ] BJ Freeman commented on OFBIZ-4065: ----------------------------------- I suggest adding a error message "reach eof unexpectedly" > bug in UtilIO.copy(Reader reader, boolean closeIn, Appendable out) > ------------------------------------------------------------------ > > Key: OFBIZ-4065 > URL: https://issues.apache.org/jira/browse/OFBIZ-4065 > Project: OFBiz > Issue Type: Bug > Affects Versions: SVN trunk > Reporter: Jacques Le Roux > Assignee: Jacques Le Roux > Fix For: SVN trunk > > Attachments: OFBIZ-4065_UtilIO.copy.patch > > > If you append cmssite/cms/APACHE_OFBIZ_HTML to a local instance or the trunk demo, like (don't use it) https://demo-trunk.ofbiz.apache.org/cmssite/cms/APACHE_OFBIZ_HTML you will never get any result. It works at http://demo-trunk.businessesnetwork.com/cmssite/cms/APACHE_OFBIZ_HTML (BJ's demo instance) but I don't know why (and have no ways to find it out) > I'm not quite sure the attached patch is the right solution, but at least it works locally. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972633#action_12972633 ] Jacques Le Roux commented on OFBIZ-4065: ---------------------------------------- When I closed, I forgot to say that I finally fixed it the right way at r1050452 It not as complicated as you are thinking. Have a look at SqlJdbcUtil.java[548]. I guess you are using a version prior to r104453( [see my comment at OFBIZ-4052|https://issues.apache.org/jira/browse/OFBIZ-4052?focusedCommentId=12972485&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_12972485]) > bug in UtilIO.copy(Reader reader, boolean closeIn, Appendable out) > ------------------------------------------------------------------ > > Key: OFBIZ-4065 > URL: https://issues.apache.org/jira/browse/OFBIZ-4065 > Project: OFBiz > Issue Type: Bug > Affects Versions: SVN trunk > Reporter: Jacques Le Roux > Assignee: Jacques Le Roux > Fix For: SVN trunk > > Attachments: OFBIZ-4065_UtilIO.copy.patch > > > If you append cmssite/cms/APACHE_OFBIZ_HTML to a local instance or the trunk demo, like (don't use it) https://demo-trunk.ofbiz.apache.org/cmssite/cms/APACHE_OFBIZ_HTML you will never get any result. It works at http://demo-trunk.businessesnetwork.com/cmssite/cms/APACHE_OFBIZ_HTML (BJ's demo instance) but I don't know why (and have no ways to find it out) > I'm not quite sure the attached patch is the right solution, but at least it works locally. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972633#action_12972633 ] Jacques Le Roux edited comment on OFBIZ-4065 at 12/17/10 3:27 PM: ------------------------------------------------------------------ I forgot to say that I finally fixed it the right way at r1050452 It not as complicated as you are thinking. Have a look at SqlJdbcUtil.java[548]. was (Author: jacques.le.roux): When I closed, I forgot to say that I finally fixed it the right way at r1050452 It not as complicated as you are thinking. Have a look at SqlJdbcUtil.java[548]. I guess you are using a version prior to r104453( [see my comment at OFBIZ-4052|https://issues.apache.org/jira/browse/OFBIZ-4052?focusedCommentId=12972485&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_12972485]) > bug in UtilIO.copy(Reader reader, boolean closeIn, Appendable out) > ------------------------------------------------------------------ > > Key: OFBIZ-4065 > URL: https://issues.apache.org/jira/browse/OFBIZ-4065 > Project: OFBiz > Issue Type: Bug > Affects Versions: SVN trunk > Reporter: Jacques Le Roux > Assignee: Jacques Le Roux > Fix For: SVN trunk > > Attachments: OFBIZ-4065_UtilIO.copy.patch > > > If you append cmssite/cms/APACHE_OFBIZ_HTML to a local instance or the trunk demo, like (don't use it) https://demo-trunk.ofbiz.apache.org/cmssite/cms/APACHE_OFBIZ_HTML you will never get any result. It works at http://demo-trunk.businessesnetwork.com/cmssite/cms/APACHE_OFBIZ_HTML (BJ's demo instance) but I don't know why (and have no ways to find it out) > I'm not quite sure the attached patch is the right solution, but at least it works locally. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972820#action_12972820 ] BJ Freeman commented on OFBIZ-4065: ----------------------------------- for future this was resolved by JVm >> -----Original Message----- >> From: Jacques Le Roux [mailto:[hidden email]] >> Hi, >> >> After having fixed the trunk bug (no more threads running for long >> time). We got another hs_err_pid29490.log one hour ago. >> >> It appears that it could be a JVM 64bits issue. The symptom is near the >> one found here >> http://confluence.atlassian.com/pages/viewpage.action?pageId=219023686. >> >> The reason I'm inclined to think so is because the chunk of memory >> asked is 2GB! >> >> We are using >> $ java -version >> java version "1.6.0_22" >> Java(TM) SE Runtime Environment (build 1.6.0_22-b04) >> Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode) > > I only upgraded to that a week or two ago. > >> >> From >> http://bugs.sun.com/view_bug.do;jsessionid=eda2515610ea5ffffffffb524779 >> 629b4d53?bug_id=6916062 >> Could we try to use 6u22-rev(b09)? > > You could try b09 if you install it manually. Your VM is fully upto date > on the apt-get system and the version you have currently is the latest > one for the distribution (10.04 LTS) , so either wait for the next one > or install an alternative java manually. We really need to do something. Since I fixed the issue yesterday, we got 3 same crashes, 2 for trunk, one for stable, always: # A fatal error has been detected by the Java Runtime Environment: # # java.lang.OutOfMemoryError: requested 2147483664 bytes for Chunk::new. Out of swap space? # # Internal Error (allocation.cpp:215), pid=29944, tid=140101784344320 # Error: Chunk::new Following http://bugs.sun.com/view_bug.do?bug_id=6916062 I will update to 6u22-rev(b09). If it does not work I will downgrade to Java 6 update 17. > Why is this going to ofbiz-private ? > > I don't see anything sensitive here, and who knows, maybe a community > member might be able to help you. Right, I just followed the previous thread Thanks Jacques > Gav... > >> >> Thanks >> >> Jacques >> >> From: "Jacques Le Roux" <[hidden email]> >> > OK, I have fixed the (a?) trunk deadlock issue at r1050364 >> > It came from >> http://svn.apache.org/viewvc?view=revision&revision=1040798 >> > in org.ofbiz.base.util.UtilIO.copy(UtilIO.java:111) >> > >> > To relaunch, I had to kill the trunk process because it was not >> responding to stopofbiz.sh. But I think we lost memory somewhere. >> > Because we are using 3GB at all, and far less for both OFBiz running >> threads. I don't know how to recover this memory... >> > >> > There are still leaks in stable but that's less a problem for the >> demo, at least for now... >> > >> > Without the increased memory quota it would have been a bit longer to >> understand, thanks again! >> > >> > Jacques > bug in UtilIO.copy(Reader reader, boolean closeIn, Appendable out) > ------------------------------------------------------------------ > > Key: OFBIZ-4065 > URL: https://issues.apache.org/jira/browse/OFBIZ-4065 > Project: OFBiz > Issue Type: Bug > Affects Versions: SVN trunk > Reporter: Jacques Le Roux > Assignee: Jacques Le Roux > Fix For: SVN trunk > > Attachments: OFBIZ-4065_UtilIO.copy.patch > > > If you append cmssite/cms/APACHE_OFBIZ_HTML to a local instance or the trunk demo, like (don't use it) https://demo-trunk.ofbiz.apache.org/cmssite/cms/APACHE_OFBIZ_HTML you will never get any result. It works at http://demo-trunk.businessesnetwork.com/cmssite/cms/APACHE_OFBIZ_HTML (BJ's demo instance) but I don't know why (and have no ways to find it out) > I'm not quite sure the attached patch is the right solution, but at least it works locally. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972877#action_12972877 ] Jacques Le Roux commented on OFBIZ-4065: ---------------------------------------- BJ, No, it was not the same problem. # I fixed the UtilIO.copy issue as at [r1050452|http://svn.apache.org/viewvc?rev=1050452&view=rev] # I then "discovered" (I was already tracking it for few days) that we often crossed a JVM 1.6 bug, which has been fixed by -Sun- err... Oracle :( after 1.6.22_b09. On trunk we use now 1.6.23, seems to be smooth so far... > bug in UtilIO.copy(Reader reader, boolean closeIn, Appendable out) > ------------------------------------------------------------------ > > Key: OFBIZ-4065 > URL: https://issues.apache.org/jira/browse/OFBIZ-4065 > Project: OFBiz > Issue Type: Bug > Affects Versions: SVN trunk > Reporter: Jacques Le Roux > Assignee: Jacques Le Roux > Fix For: SVN trunk > > Attachments: OFBIZ-4065_UtilIO.copy.patch > > > If you append cmssite/cms/APACHE_OFBIZ_HTML to a local instance or the trunk demo, like (don't use it) https://demo-trunk.ofbiz.apache.org/cmssite/cms/APACHE_OFBIZ_HTML you will never get any result. It works at http://demo-trunk.businessesnetwork.com/cmssite/cms/APACHE_OFBIZ_HTML (BJ's demo instance) but I don't know why (and have no ways to find it out) > I'm not quite sure the attached patch is the right solution, but at least it works locally. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12973006#action_12973006 ] BJ Freeman commented on OFBIZ-4065: ----------------------------------- though you removed the problem from the demo servers. you have yet to explain how my two machines work before this patch. > bug in UtilIO.copy(Reader reader, boolean closeIn, Appendable out) > ------------------------------------------------------------------ > > Key: OFBIZ-4065 > URL: https://issues.apache.org/jira/browse/OFBIZ-4065 > Project: OFBiz > Issue Type: Bug > Affects Versions: SVN trunk > Reporter: Jacques Le Roux > Assignee: Jacques Le Roux > Fix For: SVN trunk > > Attachments: OFBIZ-4065_UtilIO.copy.patch > > > If you append cmssite/cms/APACHE_OFBIZ_HTML to a local instance or the trunk demo, like (don't use it) https://demo-trunk.ofbiz.apache.org/cmssite/cms/APACHE_OFBIZ_HTML you will never get any result. It works at http://demo-trunk.businessesnetwork.com/cmssite/cms/APACHE_OFBIZ_HTML (BJ's demo instance) but I don't know why (and have no ways to find it out) > I'm not quite sure the attached patch is the right solution, but at least it works locally. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12973010#action_12973010 ] Jacques Le Roux commented on OFBIZ-4065: ---------------------------------------- Because you certainly use a jdk version prior to when the bug has been introduced. See http://confluence.atlassian.com/pages/viewpage.action?pageId=219023686#FatalJVMCrash-'java.lang.OutOfMemoryError..OutofSwapSpace?'-Workaround > bug in UtilIO.copy(Reader reader, boolean closeIn, Appendable out) > ------------------------------------------------------------------ > > Key: OFBIZ-4065 > URL: https://issues.apache.org/jira/browse/OFBIZ-4065 > Project: OFBiz > Issue Type: Bug > Affects Versions: SVN trunk > Reporter: Jacques Le Roux > Assignee: Jacques Le Roux > Fix For: SVN trunk > > Attachments: OFBIZ-4065_UtilIO.copy.patch > > > If you append cmssite/cms/APACHE_OFBIZ_HTML to a local instance or the trunk demo, like (don't use it) https://demo-trunk.ofbiz.apache.org/cmssite/cms/APACHE_OFBIZ_HTML you will never get any result. It works at http://demo-trunk.businessesnetwork.com/cmssite/cms/APACHE_OFBIZ_HTML (BJ's demo instance) but I don't know why (and have no ways to find it out) > I'm not quite sure the attached patch is the right solution, but at least it works locally. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12973016#action_12973016 ] BJ Freeman commented on OFBIZ-4065: ----------------------------------- ah I pasted the wrong one. :D thanks. > bug in UtilIO.copy(Reader reader, boolean closeIn, Appendable out) > ------------------------------------------------------------------ > > Key: OFBIZ-4065 > URL: https://issues.apache.org/jira/browse/OFBIZ-4065 > Project: OFBiz > Issue Type: Bug > Affects Versions: SVN trunk > Reporter: Jacques Le Roux > Assignee: Jacques Le Roux > Fix For: SVN trunk > > Attachments: OFBIZ-4065_UtilIO.copy.patch > > > If you append cmssite/cms/APACHE_OFBIZ_HTML to a local instance or the trunk demo, like (don't use it) https://demo-trunk.ofbiz.apache.org/cmssite/cms/APACHE_OFBIZ_HTML you will never get any result. It works at http://demo-trunk.businessesnetwork.com/cmssite/cms/APACHE_OFBIZ_HTML (BJ's demo instance) but I don't know why (and have no ways to find it out) > I'm not quite sure the attached patch is the right solution, but at least it works locally. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] BJ Freeman updated OFBIZ-4065: ------------------------------ Comment: was deleted (was: for future this was resolved by JVm >> -----Original Message----- >> From: Jacques Le Roux [mailto:[hidden email]] >> Hi, >> >> After having fixed the trunk bug (no more threads running for long >> time). We got another hs_err_pid29490.log one hour ago. >> >> It appears that it could be a JVM 64bits issue. The symptom is near the >> one found here >> http://confluence.atlassian.com/pages/viewpage.action?pageId=219023686. >> >> The reason I'm inclined to think so is because the chunk of memory >> asked is 2GB! >> >> We are using >> $ java -version >> java version "1.6.0_22" >> Java(TM) SE Runtime Environment (build 1.6.0_22-b04) >> Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode) > > I only upgraded to that a week or two ago. > >> >> From >> http://bugs.sun.com/view_bug.do;jsessionid=eda2515610ea5ffffffffb524779 >> 629b4d53?bug_id=6916062 >> Could we try to use 6u22-rev(b09)? > > You could try b09 if you install it manually. Your VM is fully upto date > on the apt-get system and the version you have currently is the latest > one for the distribution (10.04 LTS) , so either wait for the next one > or install an alternative java manually. We really need to do something. Since I fixed the issue yesterday, we got 3 same crashes, 2 for trunk, one for stable, always: # A fatal error has been detected by the Java Runtime Environment: # # java.lang.OutOfMemoryError: requested 2147483664 bytes for Chunk::new. Out of swap space? # # Internal Error (allocation.cpp:215), pid=29944, tid=140101784344320 # Error: Chunk::new Following http://bugs.sun.com/view_bug.do?bug_id=6916062 I will update to 6u22-rev(b09). If it does not work I will downgrade to Java 6 update 17. > Why is this going to ofbiz-private ? > > I don't see anything sensitive here, and who knows, maybe a community > member might be able to help you. Right, I just followed the previous thread Thanks Jacques > Gav... > >> >> Thanks >> >> Jacques >> >> From: "Jacques Le Roux" <[hidden email]> >> > OK, I have fixed the (a?) trunk deadlock issue at r1050364 >> > It came from >> http://svn.apache.org/viewvc?view=revision&revision=1040798 >> > in org.ofbiz.base.util.UtilIO.copy(UtilIO.java:111) >> > >> > To relaunch, I had to kill the trunk process because it was not >> responding to stopofbiz.sh. But I think we lost memory somewhere. >> > Because we are using 3GB at all, and far less for both OFBiz running >> threads. I don't know how to recover this memory... >> > >> > There are still leaks in stable but that's less a problem for the >> demo, at least for now... >> > >> > Without the increased memory quota it would have been a bit longer to >> understand, thanks again! >> > >> > Jacques ) > bug in UtilIO.copy(Reader reader, boolean closeIn, Appendable out) > ------------------------------------------------------------------ > > Key: OFBIZ-4065 > URL: https://issues.apache.org/jira/browse/OFBIZ-4065 > Project: OFBiz > Issue Type: Bug > Affects Versions: SVN trunk > Reporter: Jacques Le Roux > Assignee: Jacques Le Roux > Fix For: SVN trunk > > Attachments: OFBIZ-4065_UtilIO.copy.patch > > > If you append cmssite/cms/APACHE_OFBIZ_HTML to a local instance or the trunk demo, like (don't use it) https://demo-trunk.ofbiz.apache.org/cmssite/cms/APACHE_OFBIZ_HTML you will never get any result. It works at http://demo-trunk.businessesnetwork.com/cmssite/cms/APACHE_OFBIZ_HTML (BJ's demo instance) but I don't know why (and have no ways to find it out) > I'm not quite sure the attached patch is the right solution, but at least it works locally. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] BJ Freeman updated OFBIZ-4065: ------------------------------ Comment: was deleted (was: though you removed the problem from the demo servers. you have yet to explain how my two machines work before this patch. ) > bug in UtilIO.copy(Reader reader, boolean closeIn, Appendable out) > ------------------------------------------------------------------ > > Key: OFBIZ-4065 > URL: https://issues.apache.org/jira/browse/OFBIZ-4065 > Project: OFBiz > Issue Type: Bug > Affects Versions: SVN trunk > Reporter: Jacques Le Roux > Assignee: Jacques Le Roux > Fix For: SVN trunk > > Attachments: OFBIZ-4065_UtilIO.copy.patch > > > If you append cmssite/cms/APACHE_OFBIZ_HTML to a local instance or the trunk demo, like (don't use it) https://demo-trunk.ofbiz.apache.org/cmssite/cms/APACHE_OFBIZ_HTML you will never get any result. It works at http://demo-trunk.businessesnetwork.com/cmssite/cms/APACHE_OFBIZ_HTML (BJ's demo instance) but I don't know why (and have no ways to find it out) > I'm not quite sure the attached patch is the right solution, but at least it works locally. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
Free forum by Nabble | Edit this page |