Join IIUG
 for   
 

Informix News
18 Nov 13 - ZDNet - Top 20 mobile skills in demand... Read
09 Sep 13 - telecompaper - Shaspa and Tatung have shown a new smart home platform at Ifa in Berlin. Powered by the IBM Informix software... Read
06 Sep 13 - IBM data magazine - Mission Accomplished - Miami, Florida will be the backdrop for the 2014 IIUG Informix Conference... Read
01 Feb 13 - IBM Data Magazine - Are your database backups safe? Lester Knutsen (IBM Champion) writes about database back up safety using "archecker"... Read
14 Nov 12 - IBM - IBM's Big Data For Smart Grid Goes Live In Texas... Read
3 Oct 12 - The Financial - IBM and TransWorks Collaborate to Help Louisiana-Pacific Corporation Achieve Supply Chain Efficiency... Read
28 Aug 12 - techCLOUD9 - Splunk kicks up a SaaS Storm... Read
10 Aug 12 - businessCLOUD9 - Is this the other half of Cloud monitoring?... Read
3 Aug 12 - IBM data management - Supercharging the data warehouse while keeping costs down IBM Informix Warehouse Accelerator (IWA) delivers superior performance for in-memory analytics processing... Read
2 Aug 12 - channelbiz - Oninit Group launches Pay Per Pulse cloud-based service... Read
28 May 12 - Bloor - David Norfolk on the recent Informix benchmark "pretty impressive results"... Read
23 May 12 - DBTA - Informix Genero: A Way to Modernize Informix 4GL Applications... Read
9 Apr 12 - Mastering Data Management - Upping the Informix Ante: Advanced Data Tools... Read
22 Mar 12 - developerWorks - Optimizing Informix database access... Read
14 Mar 12 - BernieSpang.com - International Informix User Group set to meet in San Diego... Read
1 Mar 12 - IBM Data Management - IIUG Heads West for 2012 - Get ready for sun and sand in San Diego... Read
1 Mar 12 - IBM Data Management - Running Informix on Solid-State Drives.Speed Up Database Access... Read
26 Feb 12 - BernieSpan.com - Better results, lower cost for a broad set of new IBM clients and partners... Read
24 Feb 12 - developerWorks - Informix Warehouse Accelerator: Continuous Acceleration during Data Refresh... Read
6 Feb 12 - PRLOG - Informix port delivers unlimited database scalability for popular SaaS application ... Read
2 Feb 12 - developerWorks - Loading data with the IBM Informix TimeSeries Plug-in for Data Studio... Read
1 Feb 12 - developerWorks - 100 Tech Tips, #47: Log-in to Fix Central... Read
13 Jan 12 - MC Press online - Informix Dynamic Server Entices New Users with Free Production Edition ... Read
11 Jan 12 - Computerworld - Ecologic Analytics and Landis+Gyr -- Suitors Decide to Tie the Knot... Read
9 Jan 12 - planetIDS.com - DNS impact on Informix / Impacto do DNS no Informix... Read
8 Sep 11 - TMCnet.com - IBM Offers Database Solution to Enable Smart Meter Data Capture... Read
1 Aug 11 - IBM Data Management Magazine - IIUG user view: Happy 10th anniversary to IBM and Informix... Read
8 Jul 11 - Database Trends and Applications - Managing Time Series Data with Informix... Read
31 May 11 - Smart Grid - The meter data management pitfall utilities are overlooking... Read
27 May 11 - IBM Data Management Magazine - IIUG user view: Big data, big time ( Series data, warehouse acceleration, and 4GLs )... Read
16 May 11 - Business Wire - HiT Software Announces DBMoto for Enterprise Integration, Adds Informix. Log-based Change Data Capture... Read
21 Mar 11 - Yahoo! Finance - IBM and Cable&Wireless Worldwide Announce UK Smart Energy Cloud... Read
14 Mar 11 - MarketWatch - Fuzzy Logix and IBM Unveil In-Database Analytics for IBM Informix... Read
11 Mar 11 - InvestorPlace - It's Time to Give IBM Props: How many tech stocks are up 53% since the dot-com boom?... Read
9 Mar 11 - DBTA - Database Administration and the Goal of Diminishing Downtime... Read
2 Feb 11 - DBTAs - Informix 11.7 Flexible Grid Provides a Different Way of Looking at Database Servers... Read
27 Jan 11 - exactsolutions - Exact to Add Informix Support to Database Replay, SQL Monitoring Solutions... Read
25 Jan 11 - PR Newswire - Bank of China in the UK Works With IBM to Become a Smarter, Greener Bank... Read
12 Oct 10 - Database Trends and Applications - Informix 11.7: The Beginning of the Next Decade of IBM Informix... Read
20 Sep 10 - planetIDS.com - ITG analyst paper: Cost/Benefit case for IBM Informix as compared to Microsoft SQL Server... Read
20 Jul 10 - IBM Announcements - IBM Informix Choice Edition V11.50 helps deploy low-cost scalable and reliable solutions for Apple Macintosh and Microsoft Windows... Read
20 Jul 10 - IBM Announcements - Software withdrawal: Elite Support for Informix Ultimate-C Edition... Read
24 May 10 - eWeek Europe - IBM Supplies Database Tech For EU Smart Grid... Read
23 May 10 - SiliconIndia - IBM's smart metering system allows wise use of energy... Read
21 May 10 - CNET - IBM to help people monitor energy use... Read
20 May 10 - ebiz - IBM Teams With Hildebrand To Bring Smart Metering To Homes Across Britain... Read
19 May 10 - The New Blog Times - Misurare il consumo energetico: DEHEMS è pronto... Read
19 May 10 - ZDNet - IBM software in your home? Pact enables five-city smart meter pilot in Europe... Read
17 March 10 - ZDNet (blog) David Morgenstern - TCO: New research finds Macs in the enterprise easier, cheaper to manage than... Read
17 March 2010 - Virtualization Review - ...key components of Big Blue's platform to the commercial cloud such as its WebSphere suite of application ser vers and its DB2 and Informix databases... Read
10 February 2010 - The Wall Street Journal - International Business Machines is expanding an initiative to win over students and professors on its products. How do they lure the college crowd?... Read


End of Support Dates

IIUG on Facebook IIUG on Twitter

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum

RE: Vendor JAVA Apps eating up Shared Memory.

Posted By: Marcus Haarmann
Date: Thursday, 20 September 2007, at 3:17 p.m.

In Response To: Vendor JAVA Apps eating up Shared Memory. (Knox, Ernest)

Hi,

Not sure if I can help you, cause you gave too little information about
the JAVA apps and their session pool.
Just one thing I have been running in in the past:
In Java, you have to close all statements, preparedstatments, resultsets
etc. to free up shared memory.
In case you have unnamed statements in the application, each call will
prepare internally a cursor with a unique name. In case the statement is
not closed explicitly (it is not auto-closed on commit or rollback !),
the connected cursor on the database side will stay open and allocate
memory until the connection is really closed (which is not the case,
cause you are using a pool), or the statement is explicitly closed.

Most likely, this is not a database but an application problem, so you
have to search there.
Be sure to use the latest version of JDBC driver (should be min. 3.00JC3
or later (I think in IDS 11.1 they have a newer one).
So, either the pool should keep track of all open statements and close
them before reusing the connection, or the programmers should explicitly
close each statement (which is likely to be forgotten or the program
never reaches the close because of an exception).

In case you have no access to sourcecode, there is another way to get
rid of this problem.
Use the autofree feature of Informix:
jdbc:informix-sqli://123.45.67.89:1533:INFORMIXSERVER=myserver;
user=rdtest;password=test;ifx_autofree=true
This works with 7.23+ or 9.x+ servers according to the JDBC
documentation (the URL is taken from the jdbc4pg.pdf document in the
JDBC package).
I did not use it myself, cause I like the code to be correct, but this
could help you.

Another way could be with environment variables. I have found the
following example (driver ignores user shell environment, you have to
program this):
pr = new Properties();
pr.put("AUTOFREE","1"); // Auto close cursors after last row is read
pr.put("OPTOFC","1"); // Round trip (wire) to close cursors
unnessacary

c = DriverManager.getConnection( informixConnectionURL, pr );

If you do not want to modify the application (either decompile if it is
not your source or use aspects to inject code ...), maybe you should
consult the vendor and give him some hints what could be wrong.

Hope this helps,

Marcus

-----Original Message-----
From: Knox, Ernest [mailto:eknox@searshc.com]
Sent: Thursday, September 20, 2007 8:06 PM
To: ids@iiug.org
Subject: Vendor JAVA Apps eating up Shared Memory. [9981]

We have a couple of Vendor JAVA applications that are eating up shared
memory every time they execute there SQL calls. They have their owe
pseudo session pooling, but each session increases in shared memory and
doesn't reuse pre-allocated memory and gets out of hand.

They pointed me to the information below, but wanted to know if anyone
else has run into this issue and fix.

I was also told that they should be using prepares SQL instead of
dynamic SQL. Please explain.

Resident Shared-Memory Segments

The operating system, as it switches between the processes running on
the system, normally swaps the contents of portions of memory to disk.
When a portion of memory is designated as resident, however, it is not
swapped to disk. Keeping frequently accessed data resident in memory
improves performance because it reduces the number of disk I/O
operations that would otherwise be required to access that data.

The database server requests that the operating system keep the virtual
portions in physical memory when the following two conditions exist:

The operating system supports shared-memory residency.

The RESIDENT parameter in the ONCONFIG file is set to -1 or a value that
is greater than 0.

Warning: You must consider the use of shared memory by all applications
when you consider whether to set the RESIDENT parameter to -1. Locking
all shared memory for the use of the Informix database server can
adversely affect the performance of other applications, if any, on the
same computer.

For more information on the RESIDENT configuration parameter, refer to
the Administrator's Reference.

7-16 IBM Informix Dynamic Server Administrator's Guide

**************************************

Ernie Knox

Sears Holding Co.

IT Database Administrator Specialist

IT Service Management, Strategy & Architecture

3333 Beverly Rd., B4-266A

Hoffman Estates, IL. 60179

Office: (847) 286-5735

Fax: (847) 645-3874

Pager: (800) 759-8352 Pin#: 7271042

Email: eknox@sears.com

" It's always a great day to watch Football ! "

**************************************

************************************************************************
*******
Forum Note: Use "Reply" to post a response in the discussion forum.

Messages In This Thread

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum is maintained by Administrator with WebBBS 5.12.