The monitoring stat of the Druid connection pool caused a memory leak

Alibaba's Druid connection pool can monitor sql. However, the monitoring information will be stored in memory, which will cause memory leakage in some scenarios. 1. Causes When an online machine gives an alarm (high heap memory utilization), log in to the server and dump the heap for analysis: image.png Discovery: sqlStatMap comparison ...

Posted on Tue, 30 Nov 2021 02:11:15 -0500 by bjdouros

jQuery effects, event principles, plug-ins

1. jQuery Event 1.1 What is an event 1. Page responses to different visitors are called events. 2. Example: Move the mouse over an element, select a radio button, click on an element 1.2 Event Syntax 1. Click Events $("p").click(function(){ //Code executed after action trigger!! }); 2. Double-click Events   ...

Posted on Thu, 25 Nov 2021 13:41:34 -0500 by g.grillo

leetcode - 103 introductory basic questions

1, leetcode - string 2, leetcode - binary, mathematical class 3, leetcode - array 4, leetcode - binary search 5, leetcode - speed pointer 6, leetcode - sliding window 7, leetcode - matrix 8, leetcode - stack and queue 9, leetcode - linked list 10, leetcode - binary tree 11, leetcode - join search set 12, leetcode - backtracking 13, leetcode - d ...

Posted on Mon, 22 Nov 2021 19:57:06 -0500 by ShashidharNP

Pytorch uses nn.ModuleList() and nn.Sequential() to write the neural network model

This blog describes how to use nn.ModuleList() and nn.Sequential() to simplify the way models are created. The traditional methods, nn.ModuleList() and nn.Sequential() are used to create a model to fit the sin function, train the model to save the results, and experience the convenience of the two functions. 1, Using traditional methods Creat ...

Posted on Sun, 21 Nov 2021 22:57:07 -0500 by shdt

JavaScript event execution mechanism

JS event execution mechanism 1, JS event knowledge 1.1 registration event (2 methods) Adding an event to an element is called a registration event or a binding event There are two ways to register events: traditional method and listening registration method Traditional registration method: utilize on Start event onclick  <button oncli ...

Posted on Sat, 20 Nov 2021 22:21:27 -0500 by richardk1

deepStream learning 0 ---- environment construction (Ubuntu 18.04 + vscode + docker + deepStream + opencv + C + +)

Tools used: docker docker pull nvcr.io/nvidia/deepstream:5.1-21.02-devel       (you must download the - devel suffix here, because it includes the development sdk) Install vscode (vscode can be developed remotely directly in docker, which is very convenient. Just search vscode in Ubuntu software) =====================docker ...

Posted on Wed, 10 Nov 2021 03:19:00 -0500 by trixx

Achieve intranet penetration and remote development with vscode remote SSH plug-in and Sakura Frp

Recently, the group is equipped with a computer, which has better performance than my notebook, especially a 3080Ti graphics card. It would be a pity if we don't make the best use of everything. So I installed the sunflower remote software immediately after I got it. I felt it was ok, but it was always a little stuck. I couldn't write code or a ...

Posted on Fri, 15 Oct 2021 19:49:35 -0400 by Donnamabob

VSCode builds Arduino environment to compile ESP8266 project

1, Install VS Code Official website https://code.visualstudio.com/ , download and install directly. 2, Installing the Arduino IDE Official website https://www.arduino.cc/en/software If the official website is too slow, you can also download it elsewhere https://www.arduino.cn/thread-5838-1-1.html 3, Install ESP8266 support package in Arduin ...

Posted on Wed, 06 Oct 2021 10:48:09 -0400 by adammc

Software tools teaches you how to use Visual Studio Code to develop C/C++(Linux)

There are many C/C + + development tools. Microsoft's Visual Studio and QT are good choices, but these ides are too large, and many ides are charged. The author here recommends the way of GCC+Make + code editor to develop C?C + +, which is not only suitable for PC, but also for embedded. Let's talk about the software we need. (1) VSCode: a su ...

Posted on Fri, 01 Oct 2021 16:50:07 -0400 by Bookmark

linux vscode c + + debugging

Basic introduction When debugging c + + programs with vscode under linux, launch.json and tasks.json will be encountered in the. Vscode file in the workspace. Their functions are as follows: 1. lauch.json is responsible for starting tasks and executing files (executable files) 2. Tasks.json is responsible for configuring related tasks. I ...

Posted on Sun, 19 Sep 2021 17:37:05 -0400 by metin