java中例外站点怎么添加受信任站点不进去的原因

java.sql.SQLException: ORA-01861: 文字与格式字符串不匹配 - 黑色头发 - ITeye技术网站
博客分类:
java.sql.SQLException: ORA-01861: 文字与格式字符串不匹配,因为我把数据库中为Date格式的写成了,就报了这个错,注意注意啊
heisetoufa
浏览: 5998315 次
来自: 北京
请问,我想获取连接mq设备的上下线情况,所以订阅ActiveM ...
你好,代码有BUG哦、、单击事件之后,操作只能执行一次、这次操 ...
不错不错!
挺好 简单明了
太有用了,解决了我的很麻烦的一个问题!!!!webbench -c 1000 -t 60 /MyServlet?param=12345
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar , GPL Open Source Software.
Benchmarking: GET /MyServlet?param=12345
1000 clients, running 60 sec.
Speed=6426 pages/min, 1499541 bytes/sec.
Requests: 5207 susceed, 1219 failed.
webbench的测试结果,里面有1219挂掉的,ab的测试,并发测试(ab -n 1000 -c 1000)时基本完成不了,800并发有时候能完成,500并发基本没问题。但ab的结果不稳定,比如1000并发时,有时候能完成800次请求,有时能完成500次,有时候甚至100个都完成不了。调整并发数量到500时也会出现这样的问题。无法完成时报错信息是apr_socket_recv: Connection reset by peer (104)下面是用ab测试,200并发1000次执行的结果。也有11个失败的Python code
Server Software:
Apache/2.2.14
Server Hostname:
Server Port:
Document Path:
MyServlet?param=12345
Document Length:
17042 bytes
Concurrency Level:
Time taken for tests:
11.480 seconds
Complete requests:
Failed requests:
(Connect: 0, Receive: 0, Length: 11, Exceptions: 0)
Write errors:
Total transferred:
HTML transferred:
Requests per second:
87.11 [#/sec] (mean)
Time per request:
[ms] (mean)
Time per request:
11.480 [ms] (mean, across all concurrent requests)
Transfer rate:
1469.96 [Kbytes/sec] received
Connection Times (ms)
mean[+/-sd] median
Processing:
Percentage of the requests served within a certain time (ms)
7162 (longest request)
麻烦大家帮我看看测试结果是什么意思。我有几个问题:1. webbench里出现failure是什么意思,是否意味着高并发时有的访问会失败?如果访问失败,那用户是得到500或404报错信息,还是速度变慢?2. ab测试无法通过是什么原因?3. 1000并发数大概是多少平均每分钟访问量达到的?在webben参数里,1000并发运行60秒,这个测试数据合理吗?4. 一个繁忙的网站,如果日访问量超过千万,并发的峰值能达到多少?5. 还有什么方法可以解决高并发可能产生的问题?目前是3个tomcat在同一服务器,以后可能用更多的tomcat在不同服务器上负载均衡,能否提高系统处理并发的性能?问题有点多,希望高手指点,分享你们的经验,谢谢!------解决方案--------------------
你可以详细看一下 错误记录 应该都是
这个和Tomcat 配置响应时间那些参数都有关系你如果测试负载的压力的话 建议用 weblogic 。。。
------解决方案--------------------
webbench -c 1000 -t 60 /MyServlet?param=12345Webbench - Simple Web Benchmark 1.5Copyright (c) Radim Kolar , GPL Open Source Software.Benchmarking: GET /MyServlet?param=123451000 clients, running 60 sec.Speed=6426 pages/min, 1499541 bytes/sec.Requests: 5207 susceed, 1219 failed.对于第一个问题,失败我估计是它GET请求得不到200 OK response至于具体是404还是500,抓个它的返回包就能看出来了
关于frame中调用javasript的有关问题
关于frame中调用javasript的问题&HTML&
Submit_onclick()
_show_frame.cols== "196,22,* ")
_show_frame.cols= "0,22,* ";
document.getElementById( "switchbar ").src= "147_1.jpg "
_show_frame.cols= "196,22,* "
document.getElementById( "switchbar ").src= "147.jpg "
href= "javascript:Submit_onclick() "
style= "cursor: "&
src= "147.jpg "
border= "0 "
id= "switchbar "&
我有三个html文件.用框架技术分成了三部分.这是一个中间的一个franme,html页面.
我想点击其中的图片使最左边的哪个frame往最右边缩.
但是我点击其中的按钮但却提示网页有错..
请大家帮我看看到底错在哪里吖..我看到头都痛了..
谢谢.!------解决方案--------------------parent.document.getElementById( "info_show_frame ").cols
&frameset id= "info_show_frame "
------解决方案--------------------net_lover(【孟子E章】) 说的对,parent.document.getElementsByTagName( 'frameset ')[0].cols
------解决方案--------------------net_lover(【孟子E章】) 说的对
我给你另一种形式试试吧,结果一样
parent.document.getElementsByTagName( 'frameset ')[0].cols== "0,22,* ";
------解决方案--------------------就是把
_show_frame.cols
parent.document.getElementsByTagName( 'frameset ')[0].cols
如果您喜欢IT行业或者对IT行业感兴趣,想开拓技术视野,欢迎加入本站官方QQ群:,在群里认识新朋友和交流技术^_^
本站联系邮箱:
<script src="/cpro/ui/s.js" type="text/javascrip(C)2012 本站提供的内容来源于广大网络用户,我们不保证内容的正确性。如果转载了您的内容,希望删除的请联系我们!Netty: 注意不要为java.nio.channels.ClosedChannelException浪费时间 - chenjianjx的专栏 - ITeye技术网站
博客分类:
服务端Netty在测试时遇到大量java.nio.channels.ClosedChannelException异常。有可能是你的代码有问题,也有可能仅是客户端主动关闭了连接,导致服务端的写失败。
比如,你如果在浏览器里按住F5不停刷新,就会出现大量这样的错误;但用curl/wget高并发地做压测,却并没有这种问题。
如果无聊的用户拼命刷你导致服务端出现大量这种异常怎么办? 一是限流,二是让服务端在写数据之前判断一下channel是否已关闭。
if (!channel.isConnected()) {
if (logger.isWarnEnabled()) {
logger.warn("Failed to write any response because the channel is not connected any more. Maybe the client has closed the connection? ");
chenjianjx
浏览: 874500 次
来自: 杭州
hotqqqs 写道我想说的是, 写在类路径里面, ...
指名道姓的干啥玩意呢?
我想说的是, 写在类路径里面,对于eclipse查找(ctrl ...
这个收藏刚想分享给丽芳。。回头一看作者是你。。java.util.ConcurrentModificationException原因 - Jerry.Wong Blog - ITeye技术网站
用iterator遍历集合时要注意的地方:不可以对iterator相关的地方做添加或删除操作。
下面用List为例来说明为什么会报 ConcurrentModificationException  这个异常,其它集合类似可以自己思考。
public static void main(String[] args){
List&String& set = new ArrayList&String&();
set.add("a10001");
set.add("a10002");
set.add("a10003");
set.add("a10004");
set.add("a10005");
set.add("a10006");
set.add("a10007");
List&String& del = new ArrayList&String&();
del.add("a10003");
del.add("a10004");
del.add("a10005");
for(String str : set)
if(del.contains(str))
set.remove(str);
运行这段代码的结果
Exception in thread "main" java.util.ConcurrentModificationException
at java.util.AbstractList$Itr.checkForComodification(Unknown Source)
at java.util.AbstractList$Itr.next(Unknown Source)
at com.debug.Debug.main(Debug.java:28)
大家都知道for(String str : set) 这句话实际上是用到了集合的iterator() 方法
在iterator的时候是产生了一个List的内部类Itr
public Iterator&E& iterator() {
   return new Itr();
在new Itr()时有一个关键性的操作 
* The modCount value that the iterator believes that the backing
* List should have.
If this expectation is violated, the iterator
* has detected concurrent modification.
int expectedModCount = modC
再回头看一下List 的 remove方法
public boolean remove(Object o) {
if (o == null) {
for (int index = 0; index & index++)
if (elementData[index] == null) {
fastRemove(index);
for (int index = 0; index & index++)
if (o.equals(elementData[index])) {
fastRemove(index);
private void fastRemove(int index) {
modCount++;
int numMoved = size - index - 1;
if (numMoved & 0)
System.arraycopy(elementData, index+1, elementData, index,
numMoved);
elementData[--size] = // Let gc do its work
再看一下 iterator.next()操作
public E next() {
checkForComodification();
E next = get(cursor);
lastRet = cursor++;
} catch (IndexOutOfBoundsException e) {
checkForComodification();
throw new NoSuchElementException();
final void checkForComodification() {
if (modCount != expectedModCount)
throw new ConcurrentModificationException();
相信看到这儿大家已经应该明白了为什么会出现在这个异常了。
  iterator 时 将expectedModCount = modCount 在remove()时 modCount++ 在next()时
if (modCount != expectedModCount)
throw new ConcurrentModificationException();
一旦删除或添加元素后 modCount ,expectedModCount 这两个值就会不一致 当next时就会报ConcurrentModificationException
了解了原由,解决方案就很简单了 在遍历时用一个集合存放要删除的对象 在遍历完后 调用removeAll(Collection&?& c) 就OK了。
浏览: 23074 次
来自: 北京
关于更多ConcurrentModificationExcep ...
关于更多TimeUnit的内容可以去看这里:
发生Concu ...
yzzshmily 写道我今天也遇到这种情况了, checkC ...
我今天也遇到这种情况了, checkClientName(ne ...

我要回帖

更多关于 怎么添加受信任站点 的文章

 

随机推荐