07-27-2010
Quote:
Originally Posted by
nathandrake13
is there a way or a command to check the memory utilization
It is not entirely clear what you mean by this. Unix variants, including AIX, try to use memory as efficiently as possible. This implies the usage of as much memory as possible - for loaded programs as necessary and as cache (for disk and network I/O) if no program claims it. (Basically - the reality is a bit more complicated, but that's the bottom line).
This is the reason why "free memory" is a problematic question: the correct answer is "near to nothing" almost any time, but that doesn't mean that no more memory is available for programs if one should be started. You might want to read
this post, which gives also some links to further reads, you might also want to read
this thread for some pointers.
I hope this helps.
bakunin
10 More Discussions You Might Find Interesting
1. AIX
All,
The (fre) coloumn of the (vmstat) command, does it report the size of the free list including the swap space or it only report on the RAM (physical memory).
BR, (1 Reply)
Discussion started by: Negm
1 Replies
2. AIX
Hi all
I need command to give me the utilization for memory and cpu,and how can I know if the utilization ok or no?
for example in hp unix #top
it is give me utilize for cpu and memory and also I can know if utilize ok or no.
thanks (2 Replies)
Discussion started by: magasem
2 Replies
3. HP-UX
Hi,
Please let me know what are all the reasons in increase in the Memory utilisation of ux servers, and the solutions to face those issues caused by the memory utilisation (memeory Likage)?
Thanks in Advance!
regards,
kishan (2 Replies)
Discussion started by: kishan
2 Replies
4. UNIX for Dummies Questions & Answers
hi guys
I just want to know how to get the cpu/memory utilization of a running script?
Well i know that I can use the sar command but it shows the whole system's statistics.
Is it possible to get the stats of a single scirpt or a single running service? (6 Replies)
Discussion started by: khestoi
6 Replies
5. Shell Programming and Scripting
Hi,
Is it possible to obtain physical memory and swap memory available in HP-UX server.
I tried using "top" command but i'm not able to grep the memory part exclusively...
Thanks.... (4 Replies)
Discussion started by: EmbedUX
4 Replies
6. HP-UX
command for checking memory utilization in HP -UX (2 Replies)
Discussion started by: tushar_spatil
2 Replies
7. Solaris
dear all,
kindly i want to check my server memory utilization i used alot of commands but i want to make sure that it is acurate let me explain
i have a server which has 32GB RAM
Total Memory = 33423360 kb
Free Memory = 4172568 kb
Utilized Memory = 29250792 kb
Memory Utilization... (2 Replies)
Discussion started by: maxim42
2 Replies
8. Solaris
Hi Experts,
Our servers running Solaris 10 with SAP Application. The memory utilization always >90%, but the process on SAP is too less even nothing.
Why memory utilization on solaris always looks high?
I have statement about memory on solaris, is this true:
Memory in solaris is used for... (4 Replies)
Discussion started by: edydsuranta
4 Replies
9. Red Hat
Hi,
i am new to linux/RHEL 6.0 and i have two questions.
1) How to get the CPU utilization and Memory Utilization of all Services running currently?
2) How to get the CPU utilization and Memory Utilization of all Applications running currently?
Please help me to find the script.
... (2 Replies)
Discussion started by: nossam
2 Replies
10. AIX
I have run the utility nmon in aix 6.1, and found memory utilization is 99.9% in physical.
and pressed h key and then t , in that it is not showing single process which is consuming memory resources. please help me how to find out actual memory utilization.
wheather 99% is real memory... (1 Reply)
Discussion started by: manoj.solaris
1 Replies
LEARN ABOUT PHP
mysqli_field_count
MYSQLI_FIELD_COUNT(3) 1 MYSQLI_FIELD_COUNT(3)
mysqli::$field_count - Returns the number of columns for the most recent query
Object oriented style
SYNOPSIS
int$mysqli->field_count ()
DESCRIPTION
Procedural style
int mysqli_field_count (mysqli $link)
Returns the number of columns for the most recent query on the connection represented by the $link parameter. This function can be useful
when using the mysqli_store_result(3) function to determine if the query should have produced a non-empty result set or not without knowing
the nature of the query.
PARAMETERS
o $
link -Procedural style only: A link identifier returned by mysqli_connect(3) or mysqli_init(3)
RETURN VALUES
An integer representing the number of fields in a result set.
EXAMPLES
Example #1
$mysqli->field_count example
Object oriented style
<?php
$mysqli = new mysqli("localhost", "my_user", "my_password", "test");
$mysqli->query( "DROP TABLE IF EXISTS friends");
$mysqli->query( "CREATE TABLE friends (id int, name varchar(20))");
$mysqli->query( "INSERT INTO friends VALUES (1,'Hartmut'), (2, 'Ulf')");
$mysqli->real_query("SELECT * FROM friends");
if ($mysqli->field_count) {
/* this was a select/show or describe query */
$result = $mysqli->store_result();
/* process resultset */
$row = $result->fetch_row();
/* free resultset */
$result->close();
}
/* close connection */
$mysqli->close();
?>
Procedural style
<?php
$link = mysqli_connect("localhost", "my_user", "my_password", "test");
mysqli_query($link, "DROP TABLE IF EXISTS friends");
mysqli_query($link, "CREATE TABLE friends (id int, name varchar(20))");
mysqli_query($link, "INSERT INTO friends VALUES (1,'Hartmut'), (2, 'Ulf')");
mysqli_real_query($link, "SELECT * FROM friends");
if (mysqli_field_count($link)) {
/* this was a select/show or describe query */
$result = mysqli_store_result($link);
/* process resultset */
$row = mysqli_fetch_row($result);
/* free resultset */
mysqli_free_result($result);
}
/* close connection */
mysqli_close($link);
?>
PHP Documentation Group MYSQLI_FIELD_COUNT(3)