Sponsored Content
Top Forums UNIX for Advanced & Expert Users mysqldump slowing down the process? Post 302308637 by DILEEP410 on Sunday 19th of April 2009 10:32:09 PM
Old 04-19-2009
Java

Hi Neo, do you think i have to increase the query_cache_limit size also. The comment says that "MySQL won't cache query results that are larger than query_cache_limit in size".

Can you please suggest what else i have to modify according to the optimization results?
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

mysqldump script without hardcode password

OS: Linux ambglx02 2.6.16.60-0.21-default #1 Tue May 6 12:41:02 UTC 2008 i686 i686 i386 GNU/Linux Shell: bash Currently I have a mysqldump script to backup my mysql database, the command is as below: /opt/novell/mysql/bin/mysqldump --add-drop-table -u root -p -h mydb > /home/john/mydb.sql ... (5 Replies)
Discussion started by: bulkbiz
5 Replies

2. Shell Programming and Scripting

Help needed for mysqldump command

I want to take a backup of a database and redirect the output of the whole process to a log file. I am using the below command: mysqldump -A --add-drop-table > mysql-daily-backup.sql &> /tmp/backup_log/mysql.log Is there anything wrong with the syntax? ---------- Post updated at 08:32 PM... (0 Replies)
Discussion started by: proactiveaditya
0 Replies

3. UNIX for Dummies Questions & Answers

Problem with my crontab file, using mysqldump

My crontab file tells cron to run a certain shell script at 10:30 AM every day. The shell script backs up my database with mysqldump and then runs a sed script that does some editing of the backup file. I have programmed the shell script to write an error message to a file I have in my home... (1 Reply)
Discussion started by: Ultrix
1 Replies

4. UNIX for Dummies Questions & Answers

Sendmail process "Toomany" system slowing down

Hello Experts I have M4000 Solaris 10 server, from few many days there are too many sendmail and mail.local process starting on server and each time i need to kill mannualy using pkill send mail, some time there will 600 of them taking 30mb memory for each and hence slowing down the server,... (2 Replies)
Discussion started by: karghum
2 Replies

5. UNIX for Dummies Questions & Answers

Mysqldump certain tables

Hi, I have to upload part of my database periodically when i make changes to product data etc. However I only want to upload certain tables. We suffer from bandwidth chock here, so i want to write a couple of separate scripts that upload parts of the database that changed. The database is large... (5 Replies)
Discussion started by: timgolding
5 Replies

6. Shell Programming and Scripting

Expect slowing down / missing characters

Im writing an expect program to connect to cisco routers and run commands. my commands file has only two entries show version show running-config when I run the script, the first command is run without a problem. The second command isn't. The "s" is missing at the device command line,... (1 Reply)
Discussion started by: popeye
1 Replies

7. Shell Programming and Scripting

Mysqldump rotate backup

I have a very simple script that uses a cron job to take a daily backup of our orders database. echo "Dumping ORDERS database"; mysqldump -u root --password='mypassword' -h '1.1.1.1' --opt --compress ORDERS $tbl_names > /Volumes/Files_Backup_1/db_backups/orders.sql echo "Copied database to... (2 Replies)
Discussion started by: timgolding
2 Replies

8. UNIX for Advanced & Expert Users

awk slowing down -- why?

I have an awk script that extracts data from log files and generates a report. The script is incrementing elements in arrays, summing fields depending on contents of other fields, and then in END performing some operations on those arrays. It seemed to be taking longer than it should on my... (6 Replies)
Discussion started by: treesloth
6 Replies

9. Shell Programming and Scripting

Need Help with automatically Import from special mysqldump

Hi @ all I need a little bit help with a tricky problem ... Here´s the situation: We´ve 2 MySQL-Servers, one is productive, the other is Backup. At the productive Server there runs every 2 hours a cron Job which does a Dump from MySQL-DB with script 'automysqlbackup.sh' and copy it then... (7 Replies)
Discussion started by: jackcracker
7 Replies
MYSQLND_QC_GET_CACHE_INFO(3)						 1					      MYSQLND_QC_GET_CACHE_INFO(3)

mysqlnd_qc_get_cache_info - Returns information on the current handler, the number of cache entries and cache entries, if available

SYNOPSIS
array mysqlnd_qc_get_cache_info (void ) DESCRIPTION
PARAMETERS
This function has no parameters. RETURN VALUES
Returns information on the current handler, the number of cache entries and cache entries, if available. If and what data will be returned for the cache entries is subject to the active storage handler. Storage handler are free to return any data. Storage handler are recom- mended to return at least the data provided by the default handler, if technically possible. The scope of the information is the PHP process. Depending on the PHP deployment model a process may serve one or more web requests. Values are aggregated for all cache activities on a per storage handler basis. It is not possible to tell how much queries originating from mysqli, PDO_MySQL or mysql.API calls have contributed to the aggregated data values. Use mysqlnd_qc_get_core_stats(3) to get timing data aggregated for all storage handlers. Array of cache information o $handler string - The active storage handler. All storage handler. Since 1.0.0. o $handler_version string - The version of the active storage handler. All storage handler. Since 1.0.0. o $num_entries int - The number of cache entries. The value depends on the storage handler in use. The default, APC and SQLite storage handler provide the actual number of cache entries. The MEMCACHE storage handler always returns 0. MEMCACHE does not support counting the number of cache entries. If a user defined handler is used, the number of entries of the data property is reported. Since 1.0.0. o $data array - The version of the active storage handler. Additional storage handler dependent data on the cache entries. Storage han- dler are requested to provide similar and comparable information. A user defined storage handler is free to return any data. Since 1.0.0. The following information is provided by the default storage handler for the data property. The data property holds a hash. The hash is indexed by the internal cache entry identifier of the storage handler. The cache entry identifier is human- readable and contains the query string leading to the cache entry. Please, see also the example below. The following data is given for every cache entry. o $statistics array - Statistics of the cache entry. Since 1.0.0. +---------------+--------------------------------------+---+ | Property | | | | | | | | | Description | | | | | | | | Version | | | | | | +---------------+--------------------------------------+---+ | | | | | rows | | | | | | | | | Number of rows of the cached result | | | | set. | | | | | | | | Since 1.0.0. | | | | | | | | | | | stored_size | | | | | | | | | The size of the cached result set | | | | in bytes. This is the size of the | | | | payload. The value is not suited for | | | | calculating the total memory con- | | | | sumption of all cache entries | | | | including the administrative over- | | | | head of the cache entries. | | | | | | | | Since 1.0.0. | | | | | | | | | | | cache_hits | | | | | | | | | How often the cached entry has been | | | | returned. | | | | | | | | Since 1.0.0. | | | | | | | | | | | run_time | | | | | | | | | Run time of the statement to which | | | | the cache entry belongs. This is the | | | | run time of the uncached statement. | | | | It is the time between sending the | | | | statement to MySQL receiving a reply | | | | from MySQL. Run time saved by using | | | | the query cache plugin can be calcu- | | | | lated like this: cache_hits * | | | | ((run_time - avg_run_time) + | | | | (store_time - avg_store_time)). | | | | | | | | Since 1.0.0. | | | | | | | | | | | store_time | | | | | | | | | Store time of the statements result | | | | set to which the cache entry | | | | belongs. This is the time it took to | | | | fetch and store the results of the | | | | uncached statement. | | | | | | | | Since 1.0.0. | | | | | | | | | | | min_run_time | | | | | | | | | Minimum run time of the cached | | | | statement. How long it took to find | | | | the statement in the cache. | | | | | | | | Since 1.0.0. | | | | | | | | | | |min_store_time | | | | | | | | | Minimum store time of the cached | | | | statement. The time taken for fetch- | | | | ing the cached result set from the | | | | storage medium and decoding | | | | | | | | Since 1.0.0. | | | | | | | | | | | avg_run_time | | | | | | | | | Average run time of the cached | | | | statement. | | | | | | | | Since 1.0.0. | | | | | | | | | | |avg_store_time | | | | | | | | | Average store time of the cached | | | | statement. | | | | | | | | Since 1.0.0. | | | | | | | | | | | max_run_time | | | | | | | | | Average run time of the cached | | | | statement. | | | | | | | | Since 1.0.0. | | | | | | | | | | |max_store_time | | | | | | | | | Average store time of the cached | | | | statement. | | | | | | | | Since 1.0.0. | | | | | | | | | | | valid_until | | | | | | | | | Timestamp when the cache entry | | | | expires. | | | | | | | | Since 1.1.0. | | | | | | +---------------+--------------------------------------+---+ o $metadata array - Metadata of the cache entry. This is the metadata provided by MySQL together with the result set of the statement in question. Different versions of the MySQL server may return different metadata. Unlike with some of the PHP MySQL exten- sions no attempt is made to hide MySQL server version dependencies and version details from the caller. Please, refer to the MySQL C API documentation that belongs to the MySQL server in use for further details. The metadata list contains one entry for every column. Since 1.0.0. +-----------+--------------------------------------+---+ | Property | | | | | | | | | Description | | | | | | | | Version | | | | | | +-----------+--------------------------------------+---+ | | | | | name | | | | | | | | | The field name. Depending on the | | | | MySQL version this may be the fields | | | | alias name. | | | | | | | | Since 1.0.0. | | | | | | | | | | | org_name | | | | | | | | | The field name. | | | | | | | | Since 1.0.0. | | | | | | | | | | | table | | | | | | | | | The table name. If an alias name | | | | was used for the table, this usually | | | | holds the alias name. | | | | | | | | Since 1.0.0. | | | | | | | | | | |org_table | | | | | | | | | The table name. | | | | | | | | Since 1.0.0. | | | | | | | | | | | db | | | | | | | | | The database/schema name. | | | | | | | | Since 1.0.0. | | | | | | | | | | |max_length | | | | | | | | | The maximum width of the field. | | | | Details may vary by MySQL server | | | | version. | | | | | | | | Since 1.0.0. | | | | | | | | | | | length | | | | | | | | | The width of the field. Details may | | | | vary by MySQL server version. | | | | | | | | Since 1.0.0. | | | | | | | | | | | type | | | | | | | | | The data type of the field. Details | | | | may vary by the MySQL server in use. | | | | This is the MySQL C API type con- | | | | stants value. It is recommended to | | | | use type constants provided by the | | | | mysqli extension to test for its | | | | meaning. You should not test for | | | | certain type values by comparing | | | | with certain numbers. | | | | | | | | Since 1.0.0. | | | | | | +-----------+--------------------------------------+---+ The APC storage handler returns the same information for the data property but no metadata. The metadata of a cache entry is set to NULL. The MEMCACHE storage handler does not fill the data property. Statistics are not available on a per cache entry basis with the MEMCACHE storage handler. A user defined storage handler is free to provide any data. EXAMPLES
Example #1 mysqlnd_qc_get_cache_info(3) example The example shows the output from the built-in default storage handler. Other storage handler may report different data. <?php /* Populate the cache, e.g. using mysqli */ $mysqli = new mysqli("host", "user", "password", "schema"); $mysqli->query("/*" . MYSQLND_QC_ENABLE_SWITCH . "*/SELECT id FROM test"); /* Display cache information */ var_dump(mysqlnd_qc_get_cache_info()); ?> The above examples will output: array(4) { ["num_entries"]=> int(1) ["handler"]=> string(7) "default" ["handler_version"]=> string(5) "1.0.0" ["data"]=> array(1) { ["Localhost via UNIX socket 3306 user schema|/*qc=on*/SELECT id FROM test"]=> array(2) { ["statistics"]=> array(11) { ["rows"]=> int(6) ["stored_size"]=> int(101) ["cache_hits"]=> int(0) ["run_time"]=> int(471) ["store_time"]=> int(27) ["min_run_time"]=> int(0) ["max_run_time"]=> int(0) ["min_store_time"]=> int(0) ["max_store_time"]=> int(0) ["avg_run_time"]=> int(0) ["avg_store_time"]=> int(0) } ["metadata"]=> array(1) { [0]=> array(8) { ["name"]=> string(2) "id" ["orig_name"]=> string(2) "id" ["table"]=> string(4) "test" ["orig_table"]=> string(4) "test" ["db"]=> string(4) "schema" ["max_length"]=> int(1) ["length"]=> int(11) ["type"]=> int(3) } } } } } SEE ALSO
mysqlnd_qc_get_core_stats(3). PHP Documentation Group MYSQLND_QC_GET_CACHE_INFO(3)
All times are GMT -4. The time now is 06:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy