小编Dev*_*Ria的帖子

Selenium WebDriver Firefox错误 - 无法连接

我做了我的研究,发现了其他相关问题.没有人帮忙.

至今:

  • 拥有最新版的硒

  • 安装旧版本的Firefox

我在Windows 7上进行了eclipse,我创建了一个.war并在ehost下在localhost:8080/JSPprojectServlets(在W7上)进行了测试,它运行正常.selenium打开firefox,获取url,然后获取源代码.

然后我把.war文件放到tomcat7/webapps下的我的linux(ubuntu)机器上,并尝试用我的Windows 7机器在192.168.1.102:8080/JSPprojectServlets下访问它,但它不起作用,它给出了以下错误:

HTTP Status 500 - Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows:

type Exception report

message Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows:

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows: 

(process:32704): GLib-CRITICAL **: g_slice_set_config: assertion `sys_page_size == 0' failed
Error: no display …
Run Code Online (Sandbox Code Playgroud)

java selenium tomcat7 selenium-webdriver

12
推荐指数
1
解决办法
6万
查看次数

微调 MySQL 服务器配置以获得更好的性能

我需要帮助调整我的 mysql 服务器以获得更好的性能。我有很多资源,但它仍然表现不佳。我在一张表中只有 350 万条记录,这是我命中最多的。

我需要帮助专注于更改哪些设置以获得更好的性能。

一个简单的查询,如

SELECT label,
COUNT(ObjectKey) AS labelcount
FROM db.results
GROUP BY label
ORDER BY labelcount DESC
LIMIT 30

EXPLAINED:

'1', 'SIMPLE', 'results', 'index', NULL, 'label_index', '258', NULL, '9093098', 'Using index; Using temporary; Using filesort'
Run Code Online (Sandbox Code Playgroud)

需要 44 秒。

这是我的设置。

SHOW VARIABLES LIKE '%buffer%';


'bulk_insert_buffer_size', '8388608'
'innodb_buffer_pool_instances', '1'
'innodb_buffer_pool_size', '16106127360'
'innodb_change_buffering', 'all'
'innodb_log_buffer_size', '10485760'
'join_buffer_size', '131072'
'key_buffer_size', '304087040'
'myisam_sort_buffer_size', '70254592'
'net_buffer_length', '16384'
'preload_buffer_size', '32768'
'read_buffer_size', '65536'
'read_rnd_buffer_size', '262144'
'sort_buffer_size', '262144'
'sql_buffer_result', 'OFF'


SHOW VARIABLES LIKE 'innodb%'


innodb_data_home_dir, …
Run Code Online (Sandbox Code Playgroud)

mysql

5
推荐指数
1
解决办法
6128
查看次数

标签 统计

java ×1

mysql ×1

selenium ×1

selenium-webdriver ×1

tomcat7 ×1