Sponsored Content
Top Forums UNIX for Advanced & Expert Users Server showing high Sys% CPU usage Post 303037857 by Neo on Thursday 15th of August 2019 05:38:29 AM
Old 08-15-2019
Maybe consider a book or online resource tutorial optimizing postgres, for example:

PostgreSQL 9.6 High Performance: Optimize your database with configuration tuning, routine maintenance, monitoring tools, query optimization and more

Note: I'm not recommending the book above, it is just an example of an "optimize your postgres db" book .....

I've not used Postgres in ages and am still using MySQL, generally speaking and only have experience tuning MySQL for the past ten years or so,

Last edited by hicksd8; 08-15-2019 at 10:04 AM..
This User Gave Thanks to Neo For This Post:
 

10 More Discussions You Might Find Interesting

1. Linux

Help pinpointing high HTTPD CPU usage in TOP

Hi, new here and need some help. Sometimes my site is extremely slow, if when there aren't too many people on, whereas when there are over 300 online members the site may be very fast. We use CentOS, PHP 5.26. The server has 4GB and Plesk usually shows about 2 or 3 GB free. I believe I can see... (4 Replies)
Discussion started by: pspace
4 Replies

2. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

3. Ubuntu

High System CPU Usage

I am running a Dell PE R815 with 4 x AMD 12 core CPUs with 128GB of RAM and a RAID 5 array of 6 SAS disks. This is an HPC application and is definitely CPU bound, however once I run 16 of these processes (thus pinning 16 cores) the work performed slows down dramatically, to maybe 5 or 10% of what... (2 Replies)
Discussion started by: mowmentous
2 Replies

4. AIX

Script to identify high CPU usage processes

Hi Guys, I need to write a script capable of identifying when a high cpu utilitzation process. It sounds simple but we are on a AIX 5.3 environment with Virtual CPU's (VP's) and logical CPU's. Please any ideas or tips would be highly appreciated. Thanks. Harby. (6 Replies)
Discussion started by: arizah
6 Replies

5. AIX

HELP!!! high CPU usage with ITM kuxagent

ibm tivoli monitor's kuxagent is taking up a lot of cpu usage. anybody has any idea? i attatched a screenshot. (3 Replies)
Discussion started by: curtis911
3 Replies

6. Linux

System Went panic after CPU usage high

Hi All, Yesterday my Linux server went panic and even a small command took a lot of time to run. When i monitored pl find the below output Cpu(s): 0.1%us, 98.4%sy, 0.0%ni, 1.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st the time spent on kernel mode is 98 % and also idle time is around 1.5 %...... (4 Replies)
Discussion started by: jegaraman
4 Replies

7. AIX

Wait time shows high CPU usage

Hi, I can't seem to make sense of this. My wait time is showing really high but vmstat's and topas are showing normal usage. ps aux USER PID %CPU %MEM SZ RSS TTY STAT STIME TIME COMMAND root 9961810 5680.7 0.0 448 384 - A Dec 16 6703072:12 wait ... (2 Replies)
Discussion started by: techy1
2 Replies

8. AIX

High CPU Usage , users affected

Dear All, One production Server is affected by high usage. Application is slow now. Please guide me how to solve it? NMON Report shows full cpu usage. Here im posting some server details. bash-3.2# lparstat -i Node Name : ********* Partition Name ... (6 Replies)
Discussion started by: Thala
6 Replies

9. Shell Programming and Scripting

High cpu usage

I have created one script and i have added it into cron to run after 10 mins. However I have noted that whenever that script runs, It causes CPU utilization of server to increase about 10-20 % I have rechecked script and there is no way i can make changes, Script contain only 2-3 commands. So... (4 Replies)
Discussion started by: Nakul_sh
4 Replies

10. Solaris

How can i restrict user high cpu usage?

HI In my M5000 , one of domain is having SAp installed. from today onwards we are facing some stange issue. when we start SAP application, that particular user is taking 95 % of system CP and renaming 5 % is taken by system . because of this reason application is slow. i have 4 CPU(32... (4 Replies)
Discussion started by: bentech4u
4 Replies
POSTGRES(1)						  PostgreSQL Server Applications					       POSTGRES(1)

NAME
postgres - run a PostgreSQL server in single-user mode SYNOPSIS
postgres [ -A 0 | 1 ] [ -B nbuffers ] [ -c name=value ] [ -d debug-level ] [ -D datadir ] [ -e ] [ -E ] [ -f s | i | t | n | m | h ] [ -F ] [ -i ] [ -N ] [ -o filename ] [ -O ] [ -P ] [ -s | -t pa | pl | ex ] [ -S sort-mem ] [ -W seconds ] [ --name=value ] database postgres [ -A 0 | 1 ] [ -B nbuffers ] [ -c name=value ] [ -d debug-level ] [ -D datadir ] [ -e ] [ -f s | i | t | n | m | h ] [ -F ] [ -i ] [ -o filename ] [ -O ] [ -p database ] [ -P ] [ -s | -t pa | pl | ex ] [ -S sort-mem ] [ -v protocol-version ] [ -W seconds ] [ --name=value ] DESCRIPTION
The postgres executable is the actual PostgreSQL server process that processes queries. It is normally not called directly; instead a post- master(1) multiuser server is started. The second form above is how postgres is invoked by the postmaster(1) (only conceptually, since both postmaster and postgres are in fact the same program); it should not be invoked directly this way. The first form invokes the server directly in interactive single-user mode. The primary use for this mode is during bootstrapping by initdb(1). Sometimes it is used for debugging or disaster recovery. When invoked in interactive mode from the shell, the user can enter queries and the results will be printed to the screen, but in a form that is more useful for developers than end users. But note that running a single-user backend is not truly suitable for debugging the server since no realistic interprocess communication and locking will happen. When running a stand-alone backend, the session user will be set to the user with ID 1. This user does not actually have to exist, so a stand-alone backend can be used to manually recover from certain kinds of accidental damage to the system catalogs. Implicit superuser pow- ers are granted to the user with ID 1 in stand-alone mode. OPTIONS
When postgres is started by a postmaster(1) then it inherits all options set by the latter. Additionally, postgres-specific options can be passed from the postmaster with the -o switch. You can avoid having to type these options by setting up a configuration file. See the Administrator's Guide for details. Some (safe) options can also be set from the connecting client in an application-dependent way. For example, if the environment variable PGOPTIONS is set, then libpq-based clients will pass that string to the server, which will interpret it as postgres command-line options. GENERAL PURPOSE The options -A, -B, -c, -d, -D, -F, and --name have the same meanings as the postmaster(1) except that -d 0 prevents the debugging level of the postmaster from being propagated to the backend. -e Sets the default date style to ``European'', which means that the ``day before month'' (rather than month before day) rule is used to interpret ambiguous date input, and that the day is printed before the month in certain date output formats. See the PostgreSQL User's Guide for more information. -o filename Sends all debugging and error output to filename. If the backend is running under the postmaster, this option is ignored, and the stderr inherited from the postmaster is used. -P Ignore system indexes while scanning/updating system tuples. The REINDEX command for system tables/indexes requires this option to be used. -s Print time information and other statistics at the end of each query. This is useful for benchmarking or for use in tuning the num- ber of buffers. -S sort-mem Specifies the amount of memory to be used by internal sorts and hashes before resorting to temporary disk files. The value is speci- fied in kilobytes, and defaults to 512 kilobytes. Note that for a complex query, several sorts and/or hashes might be running in parallel, and each one will be allowed to use as much as sort-mem kilobytes before it starts to put data into temporary files. OPTIONS FOR STAND-ALONE MODE database Specifies the name of the database to be accessed. If it is omitted it defaults to the user name. -E Echo all queries. -N Disables use of newline as a query delimiter. SEMI-INTERNAL OPTIONS There are several other options that may be specified, used mainly for debugging purposes. These are listed here only for the use by Post- greSQL system developers. Use of any of these options is highly discouraged. Furthermore, any of these options may disappear or change in a future release without notice. -f { s | i | m | n | h } Forbids the use of particular scan and join methods: s and i disable sequential and index scans respectively, while n, m, and h dis- able nested-loop, merge and hash joins respectively. Note: Neither sequential scans nor nested-loop joins can be disabled completely; the -fs and -fn options simply discourage the opti- mizer from using those plan types if it has any other alternative. -i Prevents query execution, but shows the plan tree. -O Allows the structure of system tables to be modified. This is used by initdb. -p database Indicates that this server has been started by a postmaster and makes different assumptions about buffer pool management, file descriptors, etc. -t pa[rser] | pl[anner] | e[xecutor] Print timing statistics for each query relating to each of the major system modules. This option cannot be used together with the -s option. -v protocol Specifies the version number of the frontend/backend protocol to be used for this particular session. -W seconds As soon as this option is encountered, the process sleeps for the specified amount of seconds. This gives developers time to attach a debugger to the backend process. ENVIRONMENT
PGDATA Default data direction location For others, which have little influence during single-user mode, see postmaster(1). NOTES
To stop a running query use the SIGINT signal. To tell postgres to reread the config file, use a SIGHUP signal. The postmaster uses SIGTERM to tell a postgres process to quit normally and SIGQUIT to terminate without the normal cleanup. These should not be used by users. USAGE
Start a stand-alone backend with a command like postgres -D $PGDATA other-options my_database Provide the correct path to the database area with -D, or make sure that the environment variable PGDATA is set. Also specify the name of the particular database you want to work in. Normally, the stand-alone backend treats newline as the command entry terminator; there is no intelligence about semicolons, as there is in psql. To continue a command across multiple lines, you must type backslash just before each newline except the last one. But if you use the -N command line switch, then newline does not terminate command entry. The backend will read the standard input until the end-of-file (EOF) marker, then process the input as a single query string. Backslash-newline is not treated specially in this case. To quit the session, type EOF (Control+D, usually). If you've used -N, two consecutive EOFs are needed to exit. Note that the stand-alone backend does not provide sophisticated line-editing features (no command history, for example). SEE ALSO
initdb(1), ipcclean(1), postmaster(1) Application 2002-11-22 POSTGRES(1)
All times are GMT -4. The time now is 06:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy