Sponsored Content
Full Discussion: Solaris Process Managment
Operating Systems Solaris Solaris Process Managment Post 302533438 by DGPickett on Thursday 23rd of June 2011 04:17:25 PM
Old 06-23-2011
You mean too much VM, or too much RAM? What is your symptom?

If a locally written program, mistakes like not free()ing dynamically allocated space before the pointer variable is lost or reloaded (memory leaks) are a common culprit. What flies in JAVA/C# is very bad in C/C++.

Mistakes in declarations can also hurt (arrays larger than needed), and bad tactics can require much memory (sorting big files in memory, for instance, or using DOM not SAX to parse XML.

Usng mmap() can use more RAM and less swap, which can be a problem or solution.
This User Gave Thanks to DGPickett For This Post:
 

8 More Discussions You Might Find Interesting

1. AIX

volume managment

Can anyone tell me why its a bad idea to have rootvg span multiple physical drives i.e. hdisk0 00014861356a3c77 rootvg hdisk1 0001486111354c7c rootvg hdisk2 00014861fcef6a5d rootvg hdisk3 none None thanks (1 Reply)
Discussion started by: csaunders
1 Replies

2. UNIX for Advanced & Expert Users

Memory managment - linux

Hi, I having problem with my linux machine it have 6Gb physical memory and somehow it always almost coming to the bottom neck and than it start writing to the swap memory you can see that there is more than 4G in cahce, is there any way to clean the cache or to limit it to 2Gb? host1... (6 Replies)
Discussion started by: Igal Malka
6 Replies

3. IP Networking

Trafic Managment on the Ubuntu Server 8.04 HOW TO?

I need help, how to set traffic management on the ubuntu server with the real life situation. For example, I would like to set the lowest priority or the "Best-Effort Traffic" for the ports in the range from 35000-37000 only on the TX(transmit) and I would like that same port range has... (1 Reply)
Discussion started by: loopdemack
1 Replies

4. AIX

HMC - craring new Managment Resource Role

Hello, I need help with creating Managment Resource Role on HMC v7. I can assignee whole machine to new role but I can't do this with single LPAR. I can't even open list of LPARs, i can see only list of machines connected to this HMC. Do you know how I can solved this problem. I have to create... (3 Replies)
Discussion started by: plechu
3 Replies

5. Shell Programming and Scripting

Shell Script to Kill Process(number of process) Unix/Solaris

Hi Experts, we do have a shell script for Unix Solaris, which will kill all the process manullay, it used to work in my previous env, but now it is throwing this error.. could some one please help me to resolve it This is how we execute the script (and this is the requirement) ... (2 Replies)
Discussion started by: jonnyvic
2 Replies

6. Red Hat

Quota Managment - Virtual Users - VSFTPD

Hi guys. I have configured Vsftpd with virtual users using Berkley DB. it is running fine. But how can we implement disk quotas for virtual users? (1 Reply)
Discussion started by: majid.merkava
1 Replies

7. UNIX for Dummies Questions & Answers

Linux managment system

Hello Folks so i have a question, we have about 1000 linux machines in our org and would like to be able to manage all of them, what type of software would i use, any suggestions? i heard of puppet, what else do we have available? (1 Reply)
Discussion started by: hookitup
1 Replies

8. UNIX and Linux Applications

Configuration of Linux cluster managment on Red Hat 5.x server

Hi Experts, I have question regarding linux cluster managment on Red Hat 5.x server. When I try to install 'luci' or 'ricci' in one of our linux servers it is giving me below error:- yum install luci Loaded plugins: katello, product-id, rhnplugin, security, subscription-manager Updating... (0 Replies)
Discussion started by: Amey Joshi
0 Replies
XML::DOM::Parser(3)					User Contributed Perl Documentation				       XML::DOM::Parser(3)

NAME
XML::DOM::Parser - An XML::Parser that builds XML::DOM document structures SYNOPSIS
use XML::DOM; my $parser = new XML::DOM::Parser; my $doc = $parser->parsefile ("file.xml"); $doc->dispose; # Avoid memory leaks - cleanup circular references DESCRIPTION
XML::DOM::Parser extends XML::Parser The XML::Parser module was written by Clark Cooper and is built on top of XML::Parser::Expat, which is a lower level interface to James Clark's expat library. XML::DOM::Parser parses XML strings or files and builds a data structure that conforms to the API of the Document Object Model as described at http://www.w3.org/TR/REC-DOM-Level-1 <http://www.w3.org/TR/REC-DOM-Level-1>. See the XML::Parser manpage for other additional properties of the XML::DOM::Parser class. Note that the 'Style' property should not be used (it is set internally.) The XML::Parser NoExpand option is more or less supported, in that it will generate EntityReference objects whenever an entity reference is encountered in character data. I'm not sure how useful this is. Any comments are welcome. As described in the synopsis, when you create an XML::DOM::Parser object, the parse and parsefile methods create an XML::DOM::Document object from the specified input. This Document object can then be examined, modified and written back out to a file or converted to a string. When using XML::DOM with XML::Parser version 2.19 and up, setting the XML::DOM::Parser option KeepCDATA to 1 will store CDATASections in CDATASection nodes, instead of converting them to Text nodes. Subsequent CDATASection nodes will be merged into one. Let me know if this is a problem. Using LWP to parse URLs The parsefile() method now also supports URLs, e.g. http://www.erols.com/enno/xsa.xml. It uses LWP to download the file and then calls parse() on the resulting string. By default it will use a LWP::UserAgent that is created as follows: use LWP::UserAgent; $LWP_USER_AGENT = LWP::UserAgent->new; $LWP_USER_AGENT->env_proxy; Note that env_proxy reads proxy settings from environment variables, which is what I need to do to get thru our firewall. If you want to use a different LWP::UserAgent, you can either set it globally with: XML::DOM::Parser::set_LWP_UserAgent ($my_agent); or, you can specify it for a specific XML::DOM::Parser by passing it to the constructor: my $parser = new XML::DOM::Parser (LWP_UserAgent => $my_agent); Currently, LWP is used when the filename (passed to parsefile) starts with one of the following URL schemes: http, https, ftp, wais, gopher, or file (followed by a colon.) If I missed one, please let me know. The LWP modules are part of libwww-perl which is available at CPAN. perl v5.12.1 2002-07-31 XML::DOM::Parser(3)
All times are GMT -4. The time now is 01:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy