小编her*_*cia的帖子

在Ubuntu 15中无法为Mysql max-connections增加max_open_files

我正在运行这个版本的Mysql

Ver 14.14 Distrib 5.6.24, for debian-linux-gnu (x86_64)
Run Code Online (Sandbox Code Playgroud)

在这个版本的Ubuntu上

Distributor ID: Ubuntu
Description:    Ubuntu 15.04
Release:    15.04
Codename:   vivid
Run Code Online (Sandbox Code Playgroud)

这是我为Mysql设置的配置:

key_buffer_size     = 16M
max_allowed_packet  = 16M
thread_stack        = 192K
thread_cache_size       = 8
innodb_buffer_pool_size=20G
innodb_log_buffer_size=16M
tmp_table_size = 32M
max_heap_table_size = 32M
open-files-limit=4510
max_connections=500
myisam-recover         = BACKUP
query_cache_type=1
query_cache_limit   = 32M
query_cache_size        = 32M
Run Code Online (Sandbox Code Playgroud)

这些是我在启动MYSQL时遇到的警告:

2015-06-17 17:28:53 26720 [Warning] Buffered warning: Could not increase number 
of max_open_files to more than 1024 (request: 4510)

2015-06-17 17:28:53 26720 [Warning] Buffered warning: Changed limits: max_connections: …
Run Code Online (Sandbox Code Playgroud)

mysql ubuntu performance

28
推荐指数
3
解决办法
3万
查看次数

如何将网站的HTML转换为图像?

有谁知道如何做到这一点?我曾尝试使用JEditorPane,但它不起作用?还有其他想法吗?

提前致谢.

这是我正在使用的代码:

import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.io.File;

import javax.imageio.ImageIO;
import javax.swing.JEditorPane;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;

public class HtmlToImage
    {

        protected static File generateOutput() throws Exception
        {
            // Create a temporary output file for the PNG image.
            File outputFile =  new File("Reporte.png");
            outputFile.deleteOnExit();

            JEditorPane pane = new JEditorPane();
            pane.setContentType("text/html");
            pane.setPage("http://www.google.com");
            final JFrame frame = new JFrame();
            frame.pack();

            // Time Delay for the correct loading of the file.
            try
            {
                Thread.sleep(5000);
            }
            catch(NumberFormatException nfe)
            {
            }

            frame.add(pane);
            frame.pack(); …
Run Code Online (Sandbox Code Playgroud)

java swing

7
推荐指数
1
解决办法
2万
查看次数

标签 统计

java ×1

mysql ×1

performance ×1

swing ×1

ubuntu ×1