Tag:Connection pool

  • The younger generation frequently uses parnew GC, which leads to the rapid rise of HTTP service RT

    Time:2021-9-13

    Background introduction At about 4:00 p.m. one day, I received a message from the partner. In the online environment, an HTTP service maintained by me suddenly timed out a lot (the timeout time of the other party is set to 300ms). I quickly went to the eagle eye platform to start sampling. I found that […]

  • 03 how to integrate the hikaricp connection pool under the springboot project? [transfer]

    Time:2021-9-11

    Analysis of pooling thought The idea of pooling is a very important idea in our project development process. For example, integer pool, string pool, object pool, connection pool and thread pool are all applications of the idea of pooling. They all reuse objects to reduce the resource consumption caused by creating and releasing objects, so […]

  • How does springboot + mybatis + Druid + PageHelper configure and implement paging under multiple data sources

    Time:2021-9-8

    preface This article is mainly about how springboot integrates mybatis, druid and PageHelper to realize multi data sources and paging. The integration of spring boot with mybatis has been described in a previous article, but there is no more explanation here. The focus is on how to configure and use druid and PageHelper under multiple […]

  • JDBC connection database details

    Time:2021-9-6

    1. JDBC overview 1.1 JDBC JDBC (Java database connectivity), in short, JDBC is a technology that uses Java language or program to connect and access database. It is an application program interface in Java language to standardize how client programs access database. It provides operation methods for querying and updating database. It is usually oriented […]

  • (6) Springboot takes off – integrate jdbctemplate Druid mybatis redis

    Time:2021-9-4

    Interested friends can learn about the first five articles. Your praise is my greatest support. Thank you! (1) Springboot take off – HelloWorld (2) Springboot take off road – Introduction principle analysis (3) Springboot take-off road – yaml configuration summary (must know and be able to get started) (4) Springboot takes off – static resource […]

  • Some simple usage of redis cache in springboot

    Time:2021-9-2

    1. Import redis dependencies <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 2. Configure redis in application.properties #Redis configuration #Redis server address spring.redis.host=127.0.0.1 #Redis server connection port spring.redis.port=6379 #Redis database index (0 by default) spring.redis.database=0 #Maximum number of connections in the connection pool (negative value indicates no limit) spring.redis.jedis.pool.max-active=50 #Maximum blocking wait time of connection pool (negative value indicates […]

  • Druid monitoring distributed solution

    Time:2021-8-27

    What is Druid monitor Druid is a very powerful database connection pool, but its strength is not only reflected in accelerating data access and connection management as a high-performance connection pool. It has built-in a powerful monitoring tool:Druid Monitor。 It can monitor not only data sources and slow queries, but also web applications, URI monitoring, […]

  • ORM persistence (custom persistence layer framework)

    Time:2021-8-20

    brief introduction Environmental requirements jdk-1.8 idea https://github.com/sumcolin/o… detailed rules and regulations ORM-1-Traditional ORM-2-Persistence ORM-Question ORM-1-Traditional Traditional Way Database driven loading Establish database link through driver Creating preprocessed SQL statements Get result set Release resources question It leads to too much hard coding and is difficult to maintain This leads to frequent calls to database links […]

  • Druid integration

    Time:2021-8-19

    Database connection pools commonly used in Java include c3p0, Hikari, Druid, etc. Database connection pool is still critical to the performance of the whole project, so database connection pool will be used in all Java projects. Among various database connection pools in Java, Druid is an open-source database connection pool launched by Alibaba, which is […]

  • 04 how to integrate the hikaricp connection pool under the springboot project?

    Time:2021-8-18

    Analysis of pooling thought The idea of pooling is a very important idea in our project development process. For example, the integer pool, string pool, object pool, connection pool and thread pool created by the bottom layer for us are all applications of the idea of pooling. They all reuse objects to reduce the resource […]

  • Scope and lifecycle

    Time:2021-8-13

    Different scopes and lifecycle categories are crucial because incorrect use can lead to very serious concurrency problems.SqlSessionFactoryBuilder: This class can be instantiated, used, and discarded. Once sqlsessionfactory is created, it is no longer needed. local variable SqlSessionFactory: To put it bluntly, it can be imagined as: database connection pool Once sqlsessionfactory is created, it should […]

  • Analysis of open source library for Android interview

    Time:2021-8-11

    Some people say that now the client interview is getting more and more voluminous, and more and more content needs to be mastered by developers. They ask everything from the basic Java foundation, Android foundation, Android system principle, Android third-party library, hybrid development, data structure and algorithm. This is true if you want to get […]