×ðÁú¿­Ê±

druidĬÈÏÅþÁ¬³Ø¾Þϸ

druid µÄĬÈÏÅþÁ¬³Ø¾Þϸȡ¾öÓÚÊý¾Ý¿âÀàÐÍºÍ jvm ÉèÖ᣹ØÓÚ mysql¡¢postgresql ºÍ oracle µÈÊý¾Ý¿â£¬Ä¬ÒÔΪ 10£»¹ØÓÚ h2 ºÍ hsqldb µÈÆäËûÊý¾Ý¿â£¬Ä¬ÒÔΪ 5¡£ÈôÊÇĬÈÏÖµ²»Öª×ãÐèÇ󣬿ÉÒÔͨ¹ý druid.properties ÎļþÖеÄÒÔÏÂÉèÖþÙÐе÷½â£º1. druid.initialsize£º³õʼÅþÁ¬³Ø´óС£»2. druid.maxactive£º×î´ó¼¤»îÅþÁ¬Êý£»3. druid.minidle£º×îС¿ÕÏÐÅþÁ¬Êý¡£

druidĬÈÏÅþÁ¬³Ø¾Þϸ

DruidĬÈÏÅþÁ¬³Ø¾Þϸȡ¾öÓÚÊý¾Ý¿âÀàÐͺÍJVMÉèÖá£

Êý¾Ý¿âÀàÐÍ

  • MySQL¡¢PostgreSQL¡¢Oracle£º10
  • ÆäËû£¨ÈçH2¡¢HSQLDB£©£º5

JVMÉèÖÃ

  • JVM¶Ñ´óС£¨-Xmx£©£ºÅþÁ¬³Ø¾Þϸ½«±»ÏÞÖÆΪJVM¶Ñ¾ÞϸµÄ10%×óÓÒ¡£
  • ¿ÉÓô¦Öóͷ£Æ÷ÊýÄ¿£ºÅþÁ¬³Ø¾Þϸ½«±»ÉèÖÃΪ¿ÉÓô¦Öóͷ£Æ÷ÊýÄ¿µÄ2±¶×óÓÒ¡£

ÅÌËãĬÈÏÖµ

ÀýÈ磬ÔÚ¾ßÓÐÒÔÏÂÉèÖõÄϵͳÖУº

  • Êý¾Ý¿âÀàÐÍ£ºMySQL
  • JVM¶Ñ´óС£º1GB
  • ¿ÉÓô¦Öóͷ£Æ÷ÊýÄ¿£º4

ĬÈÏÅþÁ¬³Ø¾Þϸ½«ÅÌËãÈçÏ£º

ÅþÁ¬³Ø¾Þϸ = min(10, JVM¶Ñ¾ÞϸµÄ10%, ¿ÉÓô¦Öóͷ£Æ÷ÊýÄ¿µÄ2±¶)

µÇ¼ºó¸´ÖÆ

ÅþÁ¬³Ø¾Þϸ = min(10, 100MB, 8)
ÅþÁ¬³Ø¾Þϸ = 8

µÇ¼ºó¸´ÖÆ

Òò´Ë£¬ÔÚ´ËϵͳÖУ¬DruidĬÈÏÅþÁ¬³Ø¾Þϸ½«Îª8¡£

µ÷½âÅþÁ¬³Ø¾Þϸ

ÈôÊÇĬÈÏÅþÁ¬³Ø¾Þϸ²»Öª×ãÓ¦ÓóÌÐòÐèÇ󣬿ÉÒÔͨ¹ý druid.properties ÎļþÖеÄÒÔÏÂÉèÖþÙÐе÷½â£º

  • druid.initialSize£º³õʼÅþÁ¬³Ø¾Þϸ
  • druid.maxActive£º×î´ó¼¤»îÅþÁ¬Êý
  • druid.minIdle£º×îС¿ÕÏÐÅþÁ¬Êý

ÒÔÉϾÍÊÇdruidĬÈÏÅþÁ¬³Ø¾ÞϸµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí£¬°æȨÕùÒéÓë±¾Õ¾Î޹أ¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±ÂËÓÍ»úÍø¹Ù·½Ì¬¶È£¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ£¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢£¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢£¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±ÊµÊ±ÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎ壬9:30-18:30£¬½ÚãåÈÕÐÝÏ¢

QR code
¡¾ÍøÕ¾µØͼ¡¿¡¾sitemap¡¿