You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by ch...@gsa.gov on 2007/06/20 15:58:45 UTC
newbie - Java Heap
Greetings,
We have a seemingly basic setup of iBatis, basic usage, and are
experiencing a fatal Java Heap memory issue. I suspect that it is a
configuration issue.
The functionality is all there, updates, inserts, selects.... we use
parameterMaps and typically an object for Results
<select id="getArtifact" parameterClass="java.util.Map"
resultClass="artifact">
The following shows the SQLMap Config:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE sqlMapConfig PUBLIC "-//ibatis.apache.org//DTD SQL Map Config
2.0//EN" "http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
<sqlMapConfig>
<settings useStatementNamespaces="false" />
<!-- JNDI Example -->
<transactionManager type="JDBC">
<dataSource type="JNDI">
<property name="DBJndiContext" value="java:DATASOURCE"/>
</dataSource>
</transactionManager>
<sqlMap resource="dao/Object1.xml" />
<sqlMap resource="dao/Object2.xml" />
etc....
</sqlMapConfig>
Environment: JBoss 4.03 on Linux
So....
Problem : Where do I start? What are some common issues with regard to
memory?
Thank you,
Christopher
~~~~~~~~~~~~~~~~~
Christopher McCauley
Unisys Corporation
Consultant
GSA FAS
CM4 817
w (703) 605 9160
chris.mccauley@gsa.gov
chris.mccauley@unisys.com
Re: newbie - Java Heap
Posted by Clinton Begin <cl...@gmail.com>.
I've never seen this. Does it work in your unit tests?
Cheers,
Clinton
On 6/20/07, chris.mccauley@gsa.gov <ch...@gsa.gov> wrote:
>
> Greetings,
>
> We have a seemingly basic setup of iBatis, basic usage, and are experiencing
> a fatal Java Heap memory issue. I suspect that it is a configuration issue.
>
> The functionality is all there, updates, inserts, selects.... we use
> parameterMaps and typically an object for Results
>
> <select id="getArtifact" parameterClass="java.util.Map"
> resultClass="artifact">
>
> The following shows the SQLMap Config:
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <!DOCTYPE sqlMapConfig PUBLIC "-//ibatis.apache.org//DTD SQL Map Config
> 2.0//EN"
> "http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
>
> <sqlMapConfig>
> <settings useStatementNamespaces="false" />
>
> <!-- JNDI Example -->
> <transactionManager type="JDBC">
> <dataSource type="JNDI">
> <property name="DBJndiContext" value="java:DATASOURCE"/>
> </dataSource>
> </transactionManager>
>
> <sqlMap resource="dao/Object1.xml" />
> <sqlMap resource="dao/Object2.xml" />
> etc....
>
> </sqlMapConfig>
>
> Environment: JBoss 4.03 on Linux
>
> So....
> Problem : Where do I start? What are some common issues with regard to
> memory?
>
>
>
>
> Thank you,
> Christopher
>
> ~~~~~~~~~~~~~~~~~
> Christopher McCauley
> Unisys Corporation
> Consultant
> GSA FAS
> CM4 817
> w (703) 605 9160
> chris.mccauley@gsa.gov
> chris.mccauley@unisys.com
RE: newbie - Java Heap
Posted by Daniel Kalcevich <DK...@marketlinx.com>.
I have also run into a problem with running out of PermGen memory because my code was creating the SqlMapClient again and again, and reloading the Sql Map files. That could be another place you might want to check.
Daniel
________________________________
From: Tom Henricksen [mailto:TomH@A-t-g.com]
Sent: Wed 6/20/2007 8:10 AM
To: user-java@ibatis.apache.org
Subject: RE: newbie - Java Heap
Does this occur right on startup or after your application runs for awhile? We have experienced a similar issue with Websphere after our application has run for a while.
-----Original Message-----
From: chris.mccauley@gsa.gov [mailto:chris.mccauley@gsa.gov]
Sent: Wednesday, June 20, 2007 9:10 AM
To: user-java@ibatis.apache.org
Subject: Re: newbie - Java Heap
oops,
version 2.1.7 build# 597
Thank you,
Christopher
Greetings,
We have a seemingly basic setup of iBatis, basic usage, and are experiencing a fatal Java Heap memory issue. I suspect that it is a configuration issue.
The functionality is all there, updates, inserts, selects.... we use parameterMaps and typically an object for Results
<select id="getArtifact" parameterClass="java.util.Map" resultClass="artifact">
The following shows the SQLMap Config:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE sqlMapConfig PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
<sqlMapConfig>
<settings useStatementNamespaces="false" />
<!-- JNDI Example -->
<transactionManager type="JDBC">
<dataSource type="JNDI">
<property name="DBJndiContext" value="java:DATASOURCE"/>
</dataSource>
</transactionManager>
<sqlMap resource="dao/Object1.xml" />
<sqlMap resource="dao/Object2.xml" />
etc....
</sqlMapConfig>
Environment: JBoss 4.03 on Linux
So....
Problem : Where do I start? What are some common issues with regard to memory?
Thank you,
Christopher
~~~~~~~~~~~~~~~~~
Christopher McCauley
Unisys Corporation
Consultant
GSA FAS
CM4 817
w (703) 605 9160
chris.mccauley@gsa.gov
chris.mccauley@unisys.com
RE: newbie - Java Heap
Posted by Tom Henricksen <To...@A-t-g.com>.
Does this occur right on startup or after your application runs for
awhile? We have experienced a similar issue with Websphere after our
application has run for a while.
-----Original Message-----
From: chris.mccauley@gsa.gov [mailto:chris.mccauley@gsa.gov]
Sent: Wednesday, June 20, 2007 9:10 AM
To: user-java@ibatis.apache.org
Subject: Re: newbie - Java Heap
oops,
version 2.1.7 build# 597
Thank you,
Christopher
Greetings,
We have a seemingly basic setup of iBatis, basic usage, and are
experiencing a fatal Java Heap memory issue. I suspect that it is a
configuration issue.
The functionality is all there, updates, inserts, selects.... we use
parameterMaps and typically an object for Results
<select id="getArtifact" parameterClass="java.util.Map"
resultClass="artifact">
The following shows the SQLMap Config:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE sqlMapConfig PUBLIC "-//ibatis.apache.org//DTD SQL Map Config
2.0//EN" "http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
<sqlMapConfig>
<settings useStatementNamespaces="false" />
<!-- JNDI Example -->
<transactionManager type="JDBC">
<dataSource type="JNDI">
<property name="DBJndiContext" value="java:DATASOURCE"/>
</dataSource>
</transactionManager>
<sqlMap resource="dao/Object1.xml" />
<sqlMap resource="dao/Object2.xml" />
etc....
</sqlMapConfig>
Environment: JBoss 4.03 on Linux
So....
Problem : Where do I start? What are some common issues with regard to
memory?
Thank you,
Christopher
~~~~~~~~~~~~~~~~~
Christopher McCauley
Unisys Corporation
Consultant
GSA FAS
CM4 817
w (703) 605 9160
chris.mccauley@gsa.gov
chris.mccauley@unisys.com
Re: newbie - Java Heap
Posted by ch...@gsa.gov.
oops,
version 2.1.7 build# 597
Thank you,
Christopher
Greetings,
We have a seemingly basic setup of iBatis, basic usage, and are
experiencing a fatal Java Heap memory issue. I suspect that it is a
configuration issue.
The functionality is all there, updates, inserts, selects.... we use
parameterMaps and typically an object for Results
<select id="getArtifact" parameterClass="java.util.Map"
resultClass="artifact">
The following shows the SQLMap Config:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE sqlMapConfig PUBLIC "-//ibatis.apache.org//DTD SQL Map Config
2.0//EN" "http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
<sqlMapConfig>
<settings useStatementNamespaces="false" />
<!-- JNDI Example -->
<transactionManager type="JDBC">
<dataSource type="JNDI">
<property name="DBJndiContext" value="java:DATASOURCE"/>
</dataSource>
</transactionManager>
<sqlMap resource="dao/Object1.xml" />
<sqlMap resource="dao/Object2.xml" />
etc....
</sqlMapConfig>
Environment: JBoss 4.03 on Linux
So....
Problem : Where do I start? What are some common issues with regard to
memory?
Thank you,
Christopher
~~~~~~~~~~~~~~~~~
Christopher McCauley
Unisys Corporation
Consultant
GSA FAS
CM4 817
w (703) 605 9160
chris.mccauley@gsa.gov
chris.mccauley@unisys.com