command
- lsb_release : 查看LSB(Linux Standard Base),Distribution information
1 | lsb_release |
1 | LSB Version: :core-4.1-amd64:core-4.1-noarch |
table
column | type | null | default | description |
---|---|---|---|---|
start_time | timestamp(6) | NO | CURRENT_TIMESTAMP(6) | Time the query began. |
user_host | mediumtext | NO | NULL | User and host combination. |
query_time | time(6) | NO | NULL | Total time the query took to execute. |
lock_time | time(6) | NO | NULL | Total time the query was locked. |
rows_sent | int(11) | NO | NULL | Number of rows sent. |
rows_examined | int(11) | NO | NULL | Number of rows examined. |
db | varchar(512) | NO | NULL | Default database. |
last_insert_id | int(11) | NO | NULL | last_insert_id. |
insert_id | int(11) | NO | NULL | Insert id. |
server_id | int(10) unsigned | NO | NULL | The server’s id. |
sql_text | mediumtext | NO | NULL | Full query. |
thread_id | bigint(21) unsigned | NO | NULL | Thread id. |
rows_affected | int(11) | NO | NULL | Number of rows affected by an UPDATE or DELETE (from MariaDB 10.1.2) |
reference
1 | show variables like 'long%'; |
1 | set long_query_time=0.5; |
1 | select * from mysql.slow_log; |
在无索引的表中查询会进行全表扫描,如果表的数据量很大,则扫描大量的数据,执行效率过
慢,占用数据库连接,连接数堆积很快达到数据库的最大连接数设置,新的应用请求将会被拒绝导致故障发生。
隐式转换也会导致索引无法使用.
使用mysql的explain分析sql,查看执行计划.
1 | // type为ALL,是全表扫描,每次执行需要扫描505560行数据 |
1 | // 执行计划看到type为ref,基于索引的等值查询,或者表间等值连接 |
tldr工具获取的iperf用法如下:
1 | iperf |
分别启动server和client进行测试,如:
1 | iperf -s -p 9988 -f M |
1 | address, err := net.ResolveTCPAddr("tcp", "http://server_address:18090") |
无法建立tcp连接,timeout
服务器上无可用端口用于测试,仅开放的80,443等端口已被网页服务服务占用,可以通过ssh端口转发到一个未暴露的端口,在该端口启动iperf的服务端进行测试.
1 | ssh -L local_port:localhost:server_port_for_iperf -N -T user@server_address -p server_ssh_port |
在服务器上启动iperf server
1 | iperf -s -p port -f M |
1 | [ ID] Interval Transfer Bandwidth |
3.
MFC dll中的界面在Debug时调用UpdateData()函数,会判断窗口的运行环境是否跨线程,如果创建窗口的线程与调用该函数的线程不是同一个,就会触发CWnd的AssertVaild()函数中断.提示:
it is likely that you have passed a C++ object from one thread to another and have used that object in a way that was not intended.把一个C++对象从一个线程传到另一个线程,使用对象的方式不正确(与代码的原本设计相悖)
1 | //修不完的bug |
非常欢迎您光临 programnotes.cn(以下简称本网站),为了让您能够安心使用本网站的各项服务与资讯,特此向您说明本网站的隐私权保护政策,以保障您的权益,请您详阅下列内容:
隐私权保护政策内容,包括本网站如何处理在您使用网站服务时收集到的个人识别资料。隐私权保护政策不适用于本网站以外的相关连结网站,也不适用于非本网站所委託或参与管理的人员。
本网站的网页提供其他网站的网路连结,您也可经由本网站所提供的连结,点选进入其他网站。但该连结网站不适用本网站的隐私权保护政策,您必须参考该连结网站中的隐私权保护政策。
本网站绝不会提供、交换、出租或出售任何您的个人资料给其他个人、团体、私人企业或公务机关,但有法律依据或合约义务者,不在此限。
前项但书之情形包括不限于:
本网站委託厂商协助蒐集、处理或利用您的个人资料时,将对委外厂商或个人善尽监督管理之责。
为了提供您最佳的服务,本网站会在您的电脑中放置并取用我们的Cookie,若您不愿接受Cookie的写入,您可在您使用的浏览器功能项中设定隐私权等级为高,即可拒绝Cookie的写入,但可能会导至网站某些功能无法正常执行 。
本网站隐私权保护政策将因应需求随时进行修正,修正后的条款将刊登于网站上。
对于本站之隐私权政策有任何疑问,或者想提出变更、移除个人资料之请求,请前往本站「联络我们」页面提交表单。
Last updated: [2024/11/17]
Welcome to programnotes.cn . We are committed to protecting your privacy. This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you visit our website and use our services. Please read this privacy policy carefully. If you do not agree with the terms of this privacy policy, please do not access the site.
The data controller responsible for your personal data is the company operating this website. For the data controller information, please refer to the “Contact Us” section at the end of this policy.
We may collect information about you in a variety of ways. The information we may collect on the Site includes:
Having accurate information about you permits us to provide you with a smooth, efficient, and customized experience. Specifically, we may use information collected about you via the Site to:
We may share information we have collected about you in certain situations. Your information may be disclosed as follows:
We use administrative, technical, and physical security measures to help protect your personal information. While we have taken reasonable steps to secure the personal information you provide to us, please be aware that despite our efforts, no security measures are perfect or impenetrable, and no method of data transmission can be guaranteed against any interception or other type of misuse.
We do not knowingly solicit information from or market to children under the age of 13. If we learn that we have collected personal information from a child under age 13 without verification of parental consent, we will delete that information as quickly as possible. If you believe we might have any information from or about a child under 13, please contact us.
You have the following rights concerning your data:
To exercise any of these rights, please contact us using the information provided below.
We may update this Privacy Policy from time to time in order to reflect, for example, changes to our practices or for other operational, legal, or regulatory reasons. We will notify you of any changes by posting the new Privacy Policy on this page. You are advised to review this Privacy Policy periodically for any changes.
If you have questions or comments about this Privacy Policy, please go to “Contact Us” page on this website
User interface objects support only one handle per object. Processes cannot inherit or duplicate handles to user objects. Processes in one session cannot reference a user handle in another session.
There is a theoretical limit of 65,536 user handles per session. However, the maximum number of user handles that can be opened per session is usually lower, since it is affected by available memory. There is also a default per-process limit of user handles. To change this limit, set the following registry value:
1 | HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows\USERProcessHandleQuota |