02
Sat, Nov
2 New Articles

Prevent the Windows 'Insufficient Memory' Error

Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

When you try to run many programs at the same time in Windows, you can get the “Insufficient memory to run application” error. You might be able to work around this condition by altering the order in which you start programs. But sometimes, there might be nothing you can do to load the combination of programs you want.

Item number R1365 in IBM’s Client Access/400 web page Knowledge Base (see the related article in this issue of Client Access/400 Expert) describes two utility programs that might help with this condition. Using the instructions in the article, I downloaded the utilities and tried them on my system. I’ll describe how you can get the utilities, configure them, and test them on your system.

The Problem Being Solved

As explained in the IBM document and in documentation for the utilities, the problem is that Windows cannot prevent programs from loading into low (con-ventional) DOS memory. After Windows loads, all of the remaining conventional memory is considered to be in Windows’ Global Heap. When you load a Windows program or DLL that requests fixed memory blocks, Windows allocates memory to the program or DLL from the Global Heap. Although some programs require that they be loaded into the conventional memory (such as network device drivers), most Windows programs and DLLs will work in the large pool of extended memory (memory above 1MB).

You can’t change the program’s fixed attribute, so you’ll need some other technique to get those programs to load into extended memory. The utilities described here provide the mechanism to force the programs out of conventional memory.

The 1MBFORT Utility


This utility originally appeared in the March 29, 1995, issue of PC Magazine (Ziff- Davis). To obtain the utility, you can use any of the methods described in Figure 1. The utility is provided as a ZIP file, which I unzipped with the PKUNZIP program.

There are several files in the ZIP file. The two executable programs that you will work with are 1MBFORT.EXE and VIEW1MB.EXE. The 1MBFORT program is loaded either in the Windows Startup group or in a Load= line in the WIN.INI file. The VIEW1MB program displays the programs using low memory and the available free blocks. Figure 2 shows a sample of the VIEW1MB display on the desktop.

According to the documentation provided, 1MBFORT works by fragmenting the lower memory area into blocks. The default block size is 10,240 bytes. You can set the block size from 5,000 to 20,000 bytes. When Windows loads a program or DLL, it will be unable to find a large enough block of contiguous lower memory, so it will load the program or DLL into extended memory.

The FIX1MB Utility

This utility was originally published in the May 1995 issue of Microsoft Systems Journal (Miller Freeman, Inc.). The utility is available from the sources shown in Figure 3. If possible, you should try to obtain the article describing the utility (Windows Q&A, by Matt Pietrek), as it goes into great detail about the cause of the Windows memory problem.

The file that you download is a self-extracting archive, containing other self- extracting archives. The utility and related files are contained in archive WQA0595.EXE. The files for the utility are FIX1MB.EXE, FX1MBDLL.DLL, and PROCHOOK.DLL.

I started Windows, then started the utility (FIX1MB.EXE). This presents the display shown in Figure 4. This display is different from the 1MBFORT display in that the currently loaded programs are sorted in descending order by memory use, and programs that you can’t influence (such as the Windows kernel and USER programs) are not shown in the list. Figure 5 shows the Help screen provided with the utility.

You can install the FIX1MB utility so that it loads from the Windows SYSTEM.INI file by clicking the command button shown in Figure 4.

FIX1MB uses a very different approach than 1MBFORT for controlling memory. The program monitors Windows load operations as they occur. Some conventional memory is always required for a program (512 bytes for the DOS Program Segment Prefix, or PSP). FIX1MB grants the request. However, FIX1MB then makes additional conventional memory unavailable to the program as it is loading, forcing it to load into extended memory.

The article describes the use of the “Worst case mode” check box. Checking this box increases the granularity of the utility’s memory allocation. However, this causes programs to load more slowly. If you try this utility, you can experiment with this check box to see if you can squeeze more programs into memory.

Windows System Resources

Regardless of the help provided by the utilities, I found that there are still limits to the number of programs I can start at one time. The desktops shown in Figures 2 and 4 are typical of the load I was able to start. I’m not complaining; the three Microsoft Office components are rather large programs to load.

In other tests, I was able to load Word, six instances of the PC5250 emulator, the PC5250 print function, and some DOS sessions.

The limiting factor seems to be the availability of Windows System Resources. Figure 6 shows how to check the percentage available of system resources


(from the Program Manager, Help:About Program Manager menu item). Each PC5250 session takes 3 to 5 percent of system resources. Excel took an astonishing 40 percent of system resources. The utilities do not help with this problem, which will also prevent you from launching applications.

Tuning Your Configuration

You can use either utility to help tune your configuration. Of the two, the FIX1MB utility may be easier to work with because it provides more detail about the applications using memory.

For example, Figure 4 shows the list of DLLs, drivers, and programs that are active while Windows is running. The first program in the list is the Windows multimedia DLL, which is using at least 32KB of memory (it also uses another 4KB of memory, shown as the fifth entry in the list). If I were not using the sound features of Windows, I could go into the SYSTEM.INI or WIN.INI files, or the Control Panel, and remove or comment out the multimedia drivers. Although it can be difficult to recognize a function just from the program name, you might be able to match up the names listed in the utility with sections of the SYSTEM.INI or WIN.INI files.

You will especially want to look for unused drivers, possibly left over from old versions of programs. Every driver, DLL, and unused EXE that you remove from the list of programs that Windows loads increases the chances that you will be able to load more of the programs that you need to work with.

CompuServe: GO ZIFFMEM Internet: FTP server: ftp.pcmag.zdnet.com

Log-in name: anonymous Log-in password: (your e-mail address) archive: /pcmag/1995/0328/1mbfort.zip Fax/Mail: fax: PC Magazine Utilities, (508) 368-0141 mail: PC Magazine Utilities c/o Image Software Services 55 Green St. Clinton, MA 01510-3099

Figure 1: How to Obtain the 1MBFORT Utility Figure 2: The 1MBFORT Display on the Desktop

CompuServe: GO MSL-1 Internet: FTP server: ftp.microsoft.com

Log-in name: anonymous archive: /developr/msj/msjmay95.exe


Prevent_the_Windows_Insufficient_Memory_Error03-00.jpg 450x201

Microsoft Download Service: (206) 936-6735

Figure 3: How to Obtain the FIX1MB Utility Figure 4: The FIX1MB Display on the Desktop Figure 5: The FIX1MB Help Display


Prevent_the_Windows_Insufficient_Memory_Error04-00.jpg 450x233

Prevent_the_Windows_Insufficient_Memory_Error04-01.jpg 450x356

Prevent_the_Windows_Insufficient_Memory_Error05-00.jpg 450x308

Figure 6: Monitoring System Resources


BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  • SB Profound WC 5536 Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application. You can find Part 1 here. In Part 2 of our free Node.js Webinar Series, Brian May teaches you the different tooling options available for writing code, debugging, and using Git for version control. Brian will briefly discuss the different tools available, and demonstrate his preferred setup for Node development on IBM i or any platform. Attend this webinar to learn:

  • SB Profound WP 5539More than ever, there is a demand for IT to deliver innovation. Your IBM i has been an essential part of your business operations for years. However, your organization may struggle to maintain the current system and implement new projects. The thousands of customers we've worked with and surveyed state that expectations regarding the digital footprint and vision of the company are not aligned with the current IT environment.

  • SB HelpSystems ROBOT Generic IBM announced the E1080 servers using the latest Power10 processor in September 2021. The most powerful processor from IBM to date, Power10 is designed to handle the demands of doing business in today’s high-tech atmosphere, including running cloud applications, supporting big data, and managing AI workloads. But what does Power10 mean for your data center? In this recorded webinar, IBMers Dan Sundt and Dylan Boday join IBM Power Champion Tom Huntington for a discussion on why Power10 technology is the right strategic investment if you run IBM i, AIX, or Linux. In this action-packed hour, Tom will share trends from the IBM i and AIX user communities while Dan and Dylan dive into the tech specs for key hardware, including:

  • Magic MarkTRY the one package that solves all your document design and printing challenges on all your platforms. Produce bar code labels, electronic forms, ad hoc reports, and RFID tags – without programming! MarkMagic is the only document design and print solution that combines report writing, WYSIWYG label and forms design, and conditional printing in one integrated product. Make sure your data survives when catastrophe hits. Request your trial now!  Request Now.

  • SB HelpSystems ROBOT GenericForms of ransomware has been around for over 30 years, and with more and more organizations suffering attacks each year, it continues to endure. What has made ransomware such a durable threat and what is the best way to combat it? In order to prevent ransomware, organizations must first understand how it works.

  • SB HelpSystems ROBOT GenericIT security is a top priority for businesses around the world, but most IBM i pros don’t know where to begin—and most cybersecurity experts don’t know IBM i. In this session, Robin Tatam explores the business impact of lax IBM i security, the top vulnerabilities putting IBM i at risk, and the steps you can take to protect your organization. If you’re looking to avoid unexpected downtime or corrupted data, you don’t want to miss this session.

  • SB HelpSystems ROBOT GenericCan you trust all of your users all of the time? A typical end user receives 16 malicious emails each month, but only 17 percent of these phishing campaigns are reported to IT. Once an attack is underway, most organizations won’t discover the breach until six months later. A staggering amount of damage can occur in that time. Despite these risks, 93 percent of organizations are leaving their IBM i systems vulnerable to cybercrime. In this on-demand webinar, IBM i security experts Robin Tatam and Sandi Moore will reveal:

  • FORTRA Disaster protection is vital to every business. Yet, it often consists of patched together procedures that are prone to error. From automatic backups to data encryption to media management, Robot automates the routine (yet often complex) tasks of iSeries backup and recovery, saving you time and money and making the process safer and more reliable. Automate your backups with the Robot Backup and Recovery Solution. Key features include:

  • FORTRAManaging messages on your IBM i can be more than a full-time job if you have to do it manually. Messages need a response and resources must be monitored—often over multiple systems and across platforms. How can you be sure you won’t miss important system events? Automate your message center with the Robot Message Management Solution. Key features include:

  • FORTRAThe thought of printing, distributing, and storing iSeries reports manually may reduce you to tears. Paper and labor costs associated with report generation can spiral out of control. Mountains of paper threaten to swamp your files. Robot automates report bursting, distribution, bundling, and archiving, and offers secure, selective online report viewing. Manage your reports with the Robot Report Management Solution. Key features include:

  • FORTRAFor over 30 years, Robot has been a leader in systems management for IBM i. With batch job creation and scheduling at its core, the Robot Job Scheduling Solution reduces the opportunity for human error and helps you maintain service levels, automating even the biggest, most complex runbooks. Manage your job schedule with the Robot Job Scheduling Solution. Key features include:

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • LANSAWhen it comes to creating your business applications, there are hundreds of coding platforms and programming languages to choose from. These options range from very complex traditional programming languages to Low-Code platforms where sometimes no traditional coding experience is needed. Download our whitepaper, The Power of Writing Code in a Low-Code Solution, and:

  • LANSASupply Chain is becoming increasingly complex and unpredictable. From raw materials for manufacturing to food supply chains, the journey from source to production to delivery to consumers is marred with inefficiencies, manual processes, shortages, recalls, counterfeits, and scandals. In this webinar, we discuss how:

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • Profound Logic Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application.

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: