??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品灌醉下药二区,国产在线91,国产www.大片在线http://www.aygfsteel.com/toby/zh-cnSat, 03 May 2025 12:15:47 GMTSat, 03 May 2025 12:15:47 GMT60eclipse install recordhttp://www.aygfsteel.com/toby/archive/2013/05/16/399347.htmltobyxiongtobyxiongThu, 16 May 2013 03:31:00 GMThttp://www.aygfsteel.com/toby/archive/2013/05/16/399347.htmlhttp://www.aygfsteel.com/toby/comments/399347.htmlhttp://www.aygfsteel.com/toby/archive/2013/05/16/399347.html#Feedback0http://www.aygfsteel.com/toby/comments/commentRss/399347.htmlhttp://www.aygfsteel.com/toby/services/trackbacks/399347.html
http://www.eclipse.org/downloads/

2.subclipse
http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA

3.startexplorer
http://basti1302.github.io/startexplorer/

4.m2eclipse
http://wiki.eclipse.org/Maven_Integration

5.sonar
http://dist.sonar-ide.codehaus.org/eclipse/

6.eclemma
http://update.eclemma.org/


tobyxiong 2013-05-16 11:31 发表评论
]]>
maven related knowledgehttp://www.aygfsteel.com/toby/archive/2013/05/06/398857.htmltobyxiongtobyxiongMon, 06 May 2013 05:58:00 GMThttp://www.aygfsteel.com/toby/archive/2013/05/06/398857.htmlhttp://www.aygfsteel.com/toby/comments/398857.htmlhttp://www.aygfsteel.com/toby/archive/2013/05/06/398857.html#Feedback0http://www.aygfsteel.com/toby/comments/commentRss/398857.htmlhttp://www.aygfsteel.com/toby/services/trackbacks/398857.html阅读全文

tobyxiong 2013-05-06 13:58 发表评论
]]>
jmeter相关脚本http://www.aygfsteel.com/toby/archive/2013/03/11/396289.htmltobyxiongtobyxiongMon, 11 Mar 2013 09:23:00 GMThttp://www.aygfsteel.com/toby/archive/2013/03/11/396289.htmlhttp://www.aygfsteel.com/toby/comments/396289.htmlhttp://www.aygfsteel.com/toby/archive/2013/03/11/396289.html#Feedback0http://www.aygfsteel.com/toby/comments/commentRss/396289.htmlhttp://www.aygfsteel.com/toby/services/trackbacks/396289.html/Files/toby/userProfileApiPerformanceTest-updateUPA.jmx.txt

tobyxiong 2013-03-11 17:23 发表评论
]]>
oracle更新表统计信?/title><link>http://www.aygfsteel.com/toby/archive/2013/03/11/396287.html</link><dc:creator>tobyxiong</dc:creator><author>tobyxiong</author><pubDate>Mon, 11 Mar 2013 09:12:00 GMT</pubDate><guid>http://www.aygfsteel.com/toby/archive/2013/03/11/396287.html</guid><wfw:comment>http://www.aygfsteel.com/toby/comments/396287.html</wfw:comment><comments>http://www.aygfsteel.com/toby/archive/2013/03/11/396287.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/toby/comments/commentRss/396287.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/toby/services/trackbacks/396287.html</trackback:ping><description><![CDATA[SQL> EXEC dbms_stats.gather_table_stats('【username?,'【tablename?,cascade=>true); <p> </p> <p>--单个表统计数据的l计数据更新<br /> <br />PL/SQL procedure successfully completed<br /> <br />SQL> EXEC dbms_stats.gather_schema_stats('【username?,estimate_percent=>100,cascade=> TRUE);</p> <p> </p> <p>--更新整个用户所有表的统计数据更?/p><img src ="http://www.aygfsteel.com/toby/aggbug/396287.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/toby/" target="_blank">tobyxiong</a> 2013-03-11 17:12 <a href="http://www.aygfsteel.com/toby/archive/2013/03/11/396287.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>linuxn性能调优http://www.aygfsteel.com/toby/archive/2013/03/01/395931.htmltobyxiongtobyxiongFri, 01 Mar 2013 07:44:00 GMThttp://www.aygfsteel.com/toby/archive/2013/03/01/395931.htmlhttp://www.aygfsteel.com/toby/comments/395931.htmlhttp://www.aygfsteel.com/toby/archive/2013/03/01/395931.html#Feedback0http://www.aygfsteel.com/toby/comments/commentRss/395931.htmlhttp://www.aygfsteel.com/toby/services/trackbacks/395931.htmlless /etc/sysctl.conf

# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

#Performance tunning
net.ipv4.tcp_fin_timeout = 35
net.ipv4.tcp_keepalive_time = 1800
net.ipv4.tcp_keepalive_intvl = 35
net.ipv4.ip_local_port_range = 1025 65535
net.ipv4.tcp_max_syn_backlog = 8192
net.core.netdev_max_backlog = 30000
# increase TCP max buffer size settable using setsockopt()
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
# increase Linux autotuning TCP buffer limit.
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0

# Controls the default maxmimum size of a mesage queue
kernel.msgmnb = 65536

# Controls the maximum size of a message, in bytes

tobyxiong 2013-03-01 15:44 发表评论
]]>
解锁oracle锁住?/title><link>http://www.aygfsteel.com/toby/archive/2013/02/28/395872.html</link><dc:creator>tobyxiong</dc:creator><author>tobyxiong</author><pubDate>Thu, 28 Feb 2013 10:37:00 GMT</pubDate><guid>http://www.aygfsteel.com/toby/archive/2013/02/28/395872.html</guid><wfw:comment>http://www.aygfsteel.com/toby/comments/395872.html</wfw:comment><comments>http://www.aygfsteel.com/toby/archive/2013/02/28/395872.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/toby/comments/commentRss/395872.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/toby/services/trackbacks/395872.html</trackback:ping><description><![CDATA[<div>一、select a.owner,<br />       a.object_name,<br />       a.subobject_name,<br />       a.object_type,<br />       l.session_id,<br />       l.oracle_username,<br />       l.os_user_name,<br />       se.SID,<br />       se.SERIAL#<br />  from  all_objects a, v$locked_object l,V$session se<br />where a.object_id = l.object_id<br />       and se.OSUSER = l.os_user_name<br />       and l.oracle_username = 'RD_USERPROFILE';</div><br /><br /><div>二、alter system kill session 'sid,serial#';--sid?qing)serial#为第一步查出来的数据?/div><img src ="http://www.aygfsteel.com/toby/aggbug/395872.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/toby/" target="_blank">tobyxiong</a> 2013-02-28 18:37 <a href="http://www.aygfsteel.com/toby/archive/2013/02/28/395872.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>获取oracle锁信息的工具http://www.aygfsteel.com/toby/archive/2012/08/28/386410.htmltobyxiongtobyxiongTue, 28 Aug 2012 02:34:00 GMThttp://www.aygfsteel.com/toby/archive/2012/08/28/386410.htmlhttp://www.aygfsteel.com/toby/comments/386410.htmlhttp://www.aygfsteel.com/toby/archive/2012/08/28/386410.html#Feedback0http://www.aygfsteel.com/toby/comments/commentRss/386410.htmlhttp://www.aygfsteel.com/toby/services/trackbacks/386410.html使用Ҏ(gu)Q?/span>
1. 在数据库服务器上使用sys帐户登陆Q?nbsp; sqlplus / as sysdba
2. 按以下顺序操作:(x)
SQL> @get_lock.plb
SQL> set serveroutput on
SQL> set linesize 132
SQL> exec get_locks;    

以下代g存為一個plb文gQ如get_lock.plb 
create or replace procedure get_locks wrapped 
a000000
1
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
7
b38 37c
kuShPpEAa9bu4Ofv/cJP6O42BWgwg9dcTCDrfI5Dvp0GIlnA1QE8g/AHDcUJJTBsVvDWkHwI
jr3D8CeUWl/GczDiJNN2t9DLUKJ33/AQwBC7rf60vo/9b5ysr3P5gDLkMzru89Ot+91y6I7x
mVqISk0XpvoJYT5wJ7tjkWaZv3RINpqvB4L6GlkwOb8giDmJoXT25z4ZFy9jz8fZog5qtAyu
NeMkO+57e0JXdtC4P7I2QUFxqSiJrUAtPl3lHD6oxKFdIV8LN0Ja7AqqgnEo7odXlqoxQWFD
UCs1e1nVIOEHgM4aFnrP7Vslk+s+X+nRC9iUYK7tFJOq+lxMGLbUvOIY1nxNtem2wc3I/IMI
c0KkekfgdBu0+PH64RndAtrzJRRBHj2lua5WitvgPUj8vEG5ZFM41QTVmsGzsYRDK16R53x6
OqRDbde7ZXLmeiMHoeoi/1/lYB6rliKLzVIT1qu/XBiMS2VkhaMW6ujJzQ9cMOTaUvOEGKSz
ZqJ+E5Fg8PRFpuqD+hic6Ydvjp1c7JF+8jydD5Wc7S20+dpFOx1LGwNcD2c34Fn0VfRapk6x
+4MCR1B/MA/RnIN6yCcEwGTKH5AvtqEg++ejdDfnoRqHZfphzqmolluzPDM5ktC2irDobR6c
NF8neBFZ+6HoSm6JTnH+CZ2JrDywl8perPzvycjFAsy5/evC7ZXQ+pNJhdTTeqidTZBPi21r
xo6u1cZZc59mcrcPky5ckrAigjt4D3qdAqTUgUqxAX9J8gMo8DGvMW/zIynmmPcnhgk1ZPj3
b8CBnf3Y6wGwWFn+VchKEHMeYWStRUD1olnHdfAwrwCaQPV+yJLb/SXMaR2+/MecI7RlFDlz
Vuq36iT7NZFfNQ==

/


tobyxiong 2012-08-28 10:34 发表评论
]]>
suse中用Xmanagerhttp://www.aygfsteel.com/toby/archive/2012/08/09/385157.htmltobyxiongtobyxiongThu, 09 Aug 2012 07:45:00 GMThttp://www.aygfsteel.com/toby/archive/2012/08/09/385157.htmlhttp://www.aygfsteel.com/toby/comments/385157.htmlhttp://www.aygfsteel.com/toby/archive/2012/08/09/385157.html#Feedback0http://www.aygfsteel.com/toby/comments/commentRss/385157.htmlhttp://www.aygfsteel.com/toby/services/trackbacks/385157.html1.修改/etc/sysconfig/displaymanager 

DISPLAYMANAGER_REMOTE_ACCESS="yes"

DISPLAYMANAGER_ROOT_LOGIN_REMOTE="yes"


DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN="yes"

2.相应的配|文?etc/gdm/custom.conf也会(x)更改成如下样?/strong> 
# GDM configuration storage 

[xdmcp] 
SUSEconfig: displaymanager:DISPLAYMANAGER_REMOTE_ACCESS 
Enable=true 
Port=177 

[chooser] 

[security] 
SUSEconfig: displaymanager:~DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN 
DisallowTCP=false 
SUSEconfig: displaymanager:DISPLAYMANAGER_ROOT_LOGIN_REMOTE 
AllowRemoteRoot=true 

[debug] 

3.然后Q更?etc/X11/xdm/xdm-configQ注销掉这一行(在v点加以个!Q?nbsp;
! DisplayManager.requestPort: 0

4.重启xdm 
# /etc/init.d/xdm restart 

然后可以在Windows下安装XManager之类的Y件来q程控制SUSE linux?jin)?br />



tobyxiong 2012-08-09 15:45 发表评论
]]>
Subversion中的关键字替?/title><link>http://www.aygfsteel.com/toby/archive/2012/08/07/385005.html</link><dc:creator>tobyxiong</dc:creator><author>tobyxiong</author><pubDate>Tue, 07 Aug 2012 10:06:00 GMT</pubDate><guid>http://www.aygfsteel.com/toby/archive/2012/08/07/385005.html</guid><wfw:comment>http://www.aygfsteel.com/toby/comments/385005.html</wfw:comment><comments>http://www.aygfsteel.com/toby/archive/2012/08/07/385005.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/toby/comments/commentRss/385005.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/toby/services/trackbacks/385005.html</trackback:ping><description><![CDATA[<span style="font-family: Helvetica, Tahoma, Arial, sans-serif; line-height: 25.200000762939453px; background-color: #ffffff; ">1.先打开TortoiseSVN -> Settings -> General -> Subversion configuration file 点击Edit </span> <br />2.*.java=svn:keywords=Author Date Id Rev URL<br /><br />3.文g中用 $Author$    $Date$   $Id$   $Rev$     $URL$  来替?br /><br />4.CZQ?br /><div> * $Author: xweixio $    </div><div> * $Date: 2012-08-07 18:12:14 +0800 (Tue, 07 Aug 2012) $   </div><div> * $Id: Test.java 924070 2012-08-07 10:12:14Z xweixio $   </div><div> * $Rev: 924070 $     </div><div> * $URL: http://150.236.80.220/dev/dgc/adcampaign/releases/2.1.0-139/src/java/com/drutt/tpim/Test.java $<br /><br /><br />5.下面是完整写?br /><span style="color: #333333; font-family: 'Luxi Sans', 'Lucida Grande', Geneva, Verdana, sans; font-size: 12px; line-height: 18px; background-color: #e0e0c6; ">Subversion 中可以用的 Keyword 包括下面q些?/span><ul style="list-style: square outside; margin: 0px 0px 0px 16px; padding: 1em 0px; color: #333333; font-family: 'Luxi Sans', 'Lucida Grande', Geneva, Verdana, sans; font-size: 12px; line-height: 18px; background-color: #e0e0c6; "><li><strong>Id</strong><br />q是一U综合的格式Q例?#8220;$Id: V2EXCore.php 4 2005-10-29 23:08:09Z livid $”?/li><li><strong>LastChangedDate</strong><br />最后被修改的时_(d)q个属性也可以~写?Date?/li><li><strong>LastChangedBy</strong><br />最后修改该源代码文件的用户名,q个属性也可以被羃写ؓ(f) Author?/li><li><strong>LastChangedRevision</strong><br />最后修订的版本Pq个属性也可以被羃写ؓ(f) Revision 或?Rev?/li><li><strong>HeadURL</strong><br />该源代码文g所位于?Repository 上的l对 URL 地址Q这个属性也可以被羃写ؓ(f) URL?/li></ul></div><img src ="http://www.aygfsteel.com/toby/aggbug/385005.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/toby/" target="_blank">tobyxiong</a> 2012-08-07 18:06 <a href="http://www.aygfsteel.com/toby/archive/2012/08/07/385005.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>记录http://www.aygfsteel.com/toby/archive/2012/03/31/373169.htmltobyxiongtobyxiongSat, 31 Mar 2012 15:20:00 GMThttp://www.aygfsteel.com/toby/archive/2012/03/31/373169.htmlhttp://www.aygfsteel.com/toby/comments/373169.htmlhttp://www.aygfsteel.com/toby/archive/2012/03/31/373169.html#Feedback0http://www.aygfsteel.com/toby/comments/commentRss/373169.htmlhttp://www.aygfsteel.com/toby/services/trackbacks/373169.html一、有没有写过自定义classloader
二、本地去更新q程服务器上容器代码的方?br />三、两个对象的hashcode一栯明就是同一个对象吗
四?/strong>java中关键字volatile的作?/strong>

一般说?volatile用在如下的几个地方:(x)

1、中断服务程序中修改的供其它E序(g)的变量需要加volatile;

2、多d环境下各d间共享的标志应该加volatile;

3、存储器映射的硬件寄存器通常也要加volatile说明,因ؓ(f)每次对它的读写都可能׃同意?

另外,以上q几U情늻常还要同时考虑数据的完整性(怺兌的几个标志读?jin)一半被打断?jin)重写?j),?中可以通过关中断来实现,2中可以禁止Q务调?3中则只能依靠g的良好设计了(jin)?br style="line-height: normal; " />
其实Volatile是由于编译器优化所造成的一个Bug而引入的关键字?br style="line-height: normal; " />int a = 10;
int b = a;
int c = a;
理论上来讲每ơ用a的时候都应该从a的地址来读取变量|但是q存在一个效率问题,是每次使用a都要d存(sh)取变量|然后再通过pȝȝ传到CPU 处理Q这样开销?x)很大。所以那些编译器优化者故作聪明,把a读进CPU的cache里,像上面的代码Q假如a在赋值期间没有被改变Q就直接从CPU?cache里取a的副本来q行赋倹{但是bug也显而易见,当a在赋lb之后Q可能a已经被另一个线E改变而重新写回了(jin)内存Q但q个U程q不知道Q依旧按 照原来的计划从CPU的cache里读a的副本进来赋值给cQ结果不q发生了(jin)?br style="line-height: normal; " />于是~译器的开发者ؓ(f)?jin)补救这一bugQ提供了(jin)一个Volatile让开发h员(sh)ؓ(f)他们的过失埋单,或者说提供l开发h员(sh)(jin)一个选择效率的权利。当变量加上?jin)VolatileӞ~译器就老老实实的每次都从内存?sh)读取这个变量|否则p按照优化的方案从cache里读

五、spring在项目中的应用,??br />六、maven的好?br />七、硬引用和Y引用区别   强引用和弱引用区?/strong>

1Q强引用
    本章前文介绍的引用实际上都是强引用,q是使用最普遍的引用。如果一个对象具有强引用Q那qg必不可少的生zȝ品,垃圾回收器绝不会(x)回收它。当内存I?间不IJava虚拟机宁愿抛出OutOfMemoryError错误QɽE序异常l止Q也不会(x)靠随意回收具有强引用的对象来解决内存?sh)问题?/p>


2QY引用QSoftReferenceQ?/strong>

    如果一个对象只h软引用,那就cM于可有可物的生活用品。如果内存空间够,垃圾回收器就不会(x)回收它,如果内存I间不?jin),׃?x)回收q些对象的内存。只要垃圑֛收器没有回收它,该对象就可以被程序用。Y引用可用来实现内存敏感的高速缓存?br />软引用可以和一个引用队列(ReferenceQueueQ联合用,如果软引用所引用的对象被垃圾回收Q?a target="_blank" style="color: #5fa207; text-decoration: none; ">Java虚拟机就?x)把q个软引用加入到与之兌的引用队列中?/p>

3Q弱引用QWeakReferenceQ?/strong>
    如果一个对象只h弱引用,那就cM于可有可物的生活用品。弱引用与Y引用的区别在于:(x)只具有弱引用的对象拥有更短暂的生命周期。在垃圾回收器线E扫描它 所辖的内存区域的q程中,一旦发C(jin)只具有弱引用的对象,不管当前内存I间_与否Q都?x)回收它的内存。不q,׃垃圾回收器是一个优先很低的线E, 因此不一定会(x)很快发现那些只具有弱引用的对象?nbsp;
弱引用可以和一个引用队列(ReferenceQueueQ联合用,如果弱引用所引用的对象被垃圾回收QJava虚拟机就?x)把q个弱引用加入到与之兌的引用队列中?/p>


4Q虚引用QPhantomReferenceQ?/strong>
    "虚引?֐思义Q就是Ş同虚设,与其他几U引用都不同Q虚引用q不?x)决定对象的生命周期。如果一个对象仅持有虚引用,那么它就和没有Q何引用一P在Q何时候都可能被垃圑֛收?br />虚引用主要用来跟t对象被垃圾回收的活动。虚引用与Y引用和弱引用的一个区别在于:(x)虚引用必d引用队列QReferenceQueueQ联合用。当?圑֛收器准备回收一个对象时Q如果发现它q有虚引用,׃(x)在回收对象的内存?sh)前Q把q个虚引用加入到与之兌的引用队列中。程序可以通过判断引用队列中是 否已l加入了(jin)虚引用,来了(jin)?/p>

    被引用的对象是否要被垃圑֛收。程序如果发现某个虚引用已经被加入到引用队列Q那么就可以在所引用的对象的内存被回收之前采取必要的行动?br />

八、行业网关主要的业务是什?br />?ji)、客L(fng)理发展的主要产品有哪?br />十、webservice服务端具体开?br />
String webserviceurl = "http://wt.lmobile.cn:6003/submitdata/MmsWebInterface.asmx";   
          
MmsWebInterfaceLocator mwifl = new MmsWebInterfaceLocator();
MmsWebInterfaceSoap mwifs = mwifl.getMmsWebInterfaceSoap(new java.net.URL(webserviceurl));

http://apps.hi.baidu.com/share/detail/23852724

十一、java虚拟Z的内存模型及(qing)主要法。堆栈区?br />十二?net和java中传输基本类型时大端?qing)小端避免办?br />十三、sessioin和cookie区别
十四、hash实现对key和value的排?br />十五、如何在代码中中断一个线EQ?br />十六、动态代理和cglig区别
十七、java中是g递还是引用传?br />十八、java中集合类底层数据l构
十九(ji)、threadlocal解释
二十、状态模式、责任链模式、适配器模式、观察者模式、工厂方法、抽象工厂,各属于创建型、行为型q是什么型
二十一、面象对象设计原?br />二十二、uml各图Q特别是时序?br />二十四、敏捷快发理?br />二十五、写一个编译器最快算?a+(b*c))*(d+e)正确Q?)a+c则出?br />二十六、linix中Y链接和硬链接区别Q?gt; >> 的区别,扑և一个文件中W四行和W五行的命o(h)

1. 软连接(W号链接Q?ln -s   source  target  

2. 链?ln source target   

知道?jin)inode的作用就不难理解软硬链接的区别了(jin)?/span>

  1. 软连接相当于快捷方式Q如果打开q修改Yq接Q相应的文g也会(x)随之改变。但是如果删除Yq接Q源文gq不?x)受到?jing)响?/span>
  2. 链接有点像引用和指针的l合Q当打开和修改它Ӟ相应的文仉之改变,但是所有这个文件的链接的内容也随之改变,q是因ؓ(f)所有的链接都拥有唯一的一?inode P他们指向的是同一文g?/span>
  3. 软连接可以跨文gpȝ创徏Q也是可以在某个分Z创徏到另外一个分区的软连?/span>
  4. 链接则只能在本文gpȝ中用(x(chng)Z么?Q,其实原理很简单,因ؓ(f) inode 是这个文件在当前分区中的索引|是相对于q个分区的,当然不能跨越文gpȝ?jin)?/span>
  5. 最后一个区别是软连接可以连接Q何文件或者文件夹Q而硬链接则只能在文g之间创徏
    > 输出重定向,内容?x)全部覆?      >>是追?nbsp;
     sed -n '5,10p' filename q样你就可以只查看文件的W?行到W?0?/span>
二十七、java基础斚w书籍
二十八、加?br />二十?ji)、jdk5和jdk6的新Ҏ(gu)?br />
netstat -ano | findstr "1433"


tobyxiong 2012-03-31 23:20 发表评论
]]>
重构JDK中的decodeҎ(gu)http://www.aygfsteel.com/toby/archive/2012/03/20/372298.htmltobyxiongtobyxiongTue, 20 Mar 2012 09:39:00 GMThttp://www.aygfsteel.com/toby/archive/2012/03/20/372298.htmlhttp://www.aygfsteel.com/toby/comments/372298.htmlhttp://www.aygfsteel.com/toby/archive/2012/03/20/372298.html#Feedback0http://www.aygfsteel.com/toby/comments/commentRss/372298.htmlhttp://www.aygfsteel.com/toby/services/trackbacks/372298.html在实际用时?x)存?net语言中的encode。然后java中decode出来的结果不一P以下军_?
/**
* add by
* @param str
* @param enc
* @return
* @throws UnsupportedEncodingException
*/
public static String decode(String str, String enc) throws UnsupportedEncodingException{
if (enc.length() == 0) {
   throw new UnsupportedEncodingException ("URLDecoder: empty string enc parameter");
}
List l = new LinkedList();
int strLen = str.length();
for(int i=0;i<strLen;++i){
char c = str.charAt(i);
switch (c) {
case '+':
l.add((byte)' ');
break;
case '%':
byte b = (byte)Integer.parseInt(str.substring(i+1, i+3),16);
l.add(b);
i+=2;
break;
default:
l.add((byte)str.charAt(i));
break;
}
}
byte[] bs = new byte[l.size()];
for(int i=0;i<l.size();++i)
bs[i] = (Byte)l.get(i);
return new String(bs,enc);
}


tobyxiong 2012-03-20 17:39 发表评论
]]>
linix上抓包命?/title><link>http://www.aygfsteel.com/toby/archive/2012/03/20/372266.html</link><dc:creator>tobyxiong</dc:creator><author>tobyxiong</author><pubDate>Tue, 20 Mar 2012 06:11:00 GMT</pubDate><guid>http://www.aygfsteel.com/toby/archive/2012/03/20/372266.html</guid><wfw:comment>http://www.aygfsteel.com/toby/comments/372266.html</wfw:comment><comments>http://www.aygfsteel.com/toby/archive/2012/03/20/372266.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/toby/comments/commentRss/372266.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/toby/services/trackbacks/372266.html</trackback:ping><description><![CDATA[<div>tcpdump -X -w cmppdump src 192.168.0.245 and dst 211.143.170.161 and port 8855</div><img src ="http://www.aygfsteel.com/toby/aggbug/372266.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/toby/" target="_blank">tobyxiong</a> 2012-03-20 14:11 <a href="http://www.aygfsteel.com/toby/archive/2012/03/20/372266.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>另一U责任链实现模式http://www.aygfsteel.com/toby/archive/2012/03/15/371916.htmltobyxiongtobyxiongThu, 15 Mar 2012 03:18:00 GMThttp://www.aygfsteel.com/toby/archive/2012/03/15/371916.htmlhttp://www.aygfsteel.com/toby/comments/371916.htmlhttp://www.aygfsteel.com/toby/archive/2012/03/15/371916.html#Feedback0http://www.aygfsteel.com/toby/comments/commentRss/371916.htmlhttp://www.aygfsteel.com/toby/services/trackbacks/371916.htmlpackage com.toby.zerenliang;

public interface IHandle {
    /**
     * 逻辑处理
     * 
     * 
@param mtMsg    MT数据    
     * 
@return         成功q回true,否则false
     
*/
    public boolean process(MtMsg mtMsg);
    
    /**
     * 增加下Handler.寄主Handler可以看情况调用该下Handler
     * 
     * 
@param hdl    下Handler
     * 
@return        下Handler
     
*/
    public IHandle addNextHandler(IHandle hdl);
}


package com.toby.zerenliang;

public class MtMsg {
    public int age;
    public String name;
}



package com.toby.zerenliang;

public class OneHandler implements IHandle {
    private IHandle nextHdl;
    
    @Override
    public IHandle addNextHandler(IHandle hdl) {
        this.nextHdl = hdl;
        return this.nextHdl;
    }

    @Override
    public boolean process(MtMsg mtMsg) {
        /**
         * 业务逻辑处理
         
*/
        System.out.println("业务逻辑处理one");
        if(nextHdl != null)
            return nextHdl.process(mtMsg);
        else
            return true;
    }

}





package com.toby.zerenliang;

public class TwoHandler implements IHandle {
    private IHandle nextHdl;
    @Override
    public IHandle addNextHandler(IHandle hdl) {
        this.nextHdl = hdl;
        return this.nextHdl;
    }

    @Override
    public boolean process(MtMsg mtMsg) {
        /**
         * 业务逻辑处理
         
*/
        System.out.println("业务逻辑处理two");
        if(nextHdl != null)
            return nextHdl.process(mtMsg);
        else
            return true;
    }

}




package com.toby.zerenliang;

public class Test {

    /**
     * 
@param args
     
*/
    public static void main(String[] args) {
        MtMsg mm = new MtMsg();
        mm.age = 17;
        mm.name = "名字";
        IHandle iHandle = new OneHandler();
        iHandle.addNextHandler(new TwoHandler());
        
        iHandle.process(mm);
    }

}


tobyxiong 2012-03-15 11:18 发表评论
]]>
This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in ...http://www.aygfsteel.com/toby/archive/2012/02/21/370386.htmltobyxiongtobyxiongTue, 21 Feb 2012 02:07:00 GMThttp://www.aygfsteel.com/toby/archive/2012/02/21/370386.htmlhttp://www.aygfsteel.com/toby/comments/370386.htmlhttp://www.aygfsteel.com/toby/archive/2012/02/21/370386.html#Feedback0http://www.aygfsteel.com/toby/comments/commentRss/370386.htmlhttp://www.aygfsteel.com/toby/services/trackbacks/370386.html创徏function?/p>

出错信息Q?/p>

ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)

 

原因Q?/p>

q是我们开启了(jin)bin-log, 我们必L定我们的函数是否?br /> 1 DETERMINISTIC 不确定的
2 NO SQL 没有SQl语句Q当然也不会(x)修改数据
3 READS SQL DATA 只是d数据Q当然也不会(x)修改数据
4 MODIFIES SQL DATA 要修Ҏ(gu)?br /> 5 CONTAINS SQL 包含?jin)SQL语句

其中在function里面Q只?DETERMINISTIC, NO SQL ?READS SQL DATA 被支持。如果我们开启了(jin) bin-log, 我们必Mؓ(f)我们的function指定一个参数?br />


在MySQL中创建函数时出现q种错误的解x(chng)法:(x)
set global log_bin_trust_function_creators=TRUE;

@import url(http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);

tobyxiong 2012-02-21 10:07 发表评论
]]>
Mysql重装start servicep|的解?/title><link>http://www.aygfsteel.com/toby/archive/2012/02/21/370385.html</link><dc:creator>tobyxiong</dc:creator><author>tobyxiong</author><pubDate>Tue, 21 Feb 2012 01:51:00 GMT</pubDate><guid>http://www.aygfsteel.com/toby/archive/2012/02/21/370385.html</guid><wfw:comment>http://www.aygfsteel.com/toby/comments/370385.html</wfw:comment><comments>http://www.aygfsteel.com/toby/archive/2012/02/21/370385.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/toby/comments/commentRss/370385.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/toby/services/trackbacks/370385.html</trackback:ping><description><![CDATA[<p>安装mysql.5.1版运行安装包,执行到最后一部时 start sevice,出现?jin)程序无法响应。这主要是因Zơ安装的文g没有卸蝲q净Q有些残(hu)留文件还得手工清除?/p> <p>1、进入添加删除程序,扑ֈMySQL选择卸蝲Q选择remove?br /> 2、搜索c盘的mysql目录再删掉?<strong>q一步一定要?/strong>)<br /> 3、进入MySql安装目录,删除目录?br /> 4、进入注册表Qregedit。用F3循环搜烦(ch)mysqlq删除之</p> @import url(http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);<img src ="http://www.aygfsteel.com/toby/aggbug/370385.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/toby/" target="_blank">tobyxiong</a> 2012-02-21 09:51 <a href="http://www.aygfsteel.com/toby/archive/2012/02/21/370385.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>jstat,jmap,jconsole,jvisualvm,jps,jinfo{JDKpȝ监控、性能调优工具http://www.aygfsteel.com/toby/archive/2012/02/07/369544.htmltobyxiongtobyxiongTue, 07 Feb 2012 09:02:00 GMThttp://www.aygfsteel.com/toby/archive/2012/02/07/369544.htmlhttp://www.aygfsteel.com/toby/comments/369544.htmlhttp://www.aygfsteel.com/toby/archive/2012/02/07/369544.html#Feedback0http://www.aygfsteel.com/toby/comments/commentRss/369544.htmlhttp://www.aygfsteel.com/toby/services/trackbacks/369544.htmljmap -heap:format=b pid   bin格式  javaversion 1.5
jmap -dump:format=b,file=filename pid javaversion >1.6


工具名称QIBM HeapAnalyzer

JProfiler在javaE序性能调试方便表现优越Q推荐用。也可用下面jdk自己的一些工兗?/p>

所有工具都在JDK/bin目录下, jconsole和jvisualvm为GUI囑Ş化工P其他为命令行?/p>

jvisualvm: GUI工具Q可监控、性能评估、故障诊断主Z所有javaq程的cpuQ内存,U程使用情况Q类gJProfilerQ严重推荐?/p>

jinfo:可以输出q修改运行时的java q程的opts?/p>

jps:与unix上的pscMQ用来显C本地的javaq程Q可以查看本地运行着几个javaE序Qƈ昄他们的进E号?/p>

jstat:一个极强的监视VM内存工具。可以用来监视VM内存内的各种堆和非堆的大及(qing)其内存(sh)用量?/p>

jmap:打印出某个javaq程Q用pidQ内存内的,所?#8216;对象’的情况(如:(x)产生那些对象Q及(qing)其数量)(j)?/p>

jconsole:一个java GUI监视工具Q可以以图表化的形式昄各种数据。ƈ可通过q程q接监视q程的服务器VM?/p>

jstat工具特别强大Q有众多的可选项Q详l查看堆内各个部分的使用量,以及(qing)加蝲cȝ数量。用时Q需加上查看q程的进EidQ和所选参数。以下详l介l各个参数的意义?/p>

jstat -class pid:昄加蝲class的数量,?qing)所占空间等信息?br /> jstat -compiler pid:昄VM实时~译的数量等信息?br /> jstat -gc pid:可以昄gc的信息,查看gc的次敎ͼ?qing)时间。其中最后五,分别是young gc的次敎ͼyoung gc的时_(d)full gc的次敎ͼfull gc的时_(d)gc的L间?br /> jstat -gccapacity:可以昄QVM内存?sh)三代(young,old,permQ对象的使用和占用大,如:(x)PGCMN昄的是最perm的内存(sh)用量QPGCMX昄的是perm的内存最大用量QPGC是当前新生成的perm内存占用量,PC是但前perm内存占用量。其他的可以Ҏ(gu)q个cLQ?OC是old内纯的占用量?br /> jstat -gcnew pid:new对象的信息?br /> jstat -gcnewcapacity pid:new对象的信息及(qing)其占用量?br /> jstat -gcold pid:old对象的信息?br /> jstat -gcoldcapacity pid:old对象的信息及(qing)其占用量?br /> jstat -gcpermcapacity pid: perm对象的信息及(qing)其占用量?br /> jstat -util pid:l计gc信息l计?br /> jstat -printcompilation pid:当前VM执行的信息?br /> 除了(jin)以上一个参数外Q还可以同时加上 两个数字Q如Qjstat -printcompilation 3024 250 6是每250毫秒打印一ơ,一共打?ơ,q可以加?h3每三行显CZ下标题?/p>

jmap是一个可以输出所有内存(sh)对象的工P甚至可以VM 中的heapQ以二进制输出成文本。用方?jmap -histo pid。如果连用SHELL jmap -histo pid>a.log可以其保存到文本中去,在一D|间后Q用文本对比工P可以Ҏ(gu)出GC回收?jin)哪些对象。jmap -dump:format=b,file=String 3024可以?024q程的内存heap输出出来到String文g里?/p>

jinfo:的用处比较简单,是能输出ƈ修改q行时的javaq程的运行参数。用法是jinfo -opt  pid 如:(x)查看2788的MaxPerm大小可以?nbsp; jinfo -flag MaxPermSize 2788?/p>

jconsole是一个用java写的GUIE序Q用来监控VMQƈ可监控远E的VMQ非常易用,而且功能非常强。由于是GUIE序Q这里就不详l介l了(jin)Q不?x)的地方可以参考SQN的官Ҏ(gu)档?br /> 使用Ҏ(gu)Q命令行里打 jconsoleQ选则q程可以了(jin)?/p>

SUN官方说明Q?/p>

jvisualvm: http://java.sun.com/javase/6/docs/technotes/tools/share/jvisualvm.html

jps:http://java.sun.com/javase/6/docs/technotes/tools/share/jps.html
jstat:http://java.sun.com/javase/6/docs/technotes/tools/share/jstat.html
jmap:http://java.sun.com/javase/6/docs/technotes/tools/share/jmap.html
jconsole:http://java.sun.com/javase/6/docs/technotes/tools/share/jconsole.html




在一ơ解决系ltomcat老是内存撑到_(d)然后崩溃的问题时Q用到?jin)jmap?
1 使用命o(h)
在环境是linux+jdk1.5以上Q这个工h自带的,路径在JDK_HOME/bin/?
jmap -histo pid>a.log

2 输出l果摘要
Size    Count   Class description
-------------------------------------------------------
353371288       9652324 char[]
230711112       9612963 java.lang.String
139347160       114865  byte[]
76128096        3172004 java.util.Hashtable$Entry
75782280        3157595 com.test.util.IPSeeker$IPLocation
25724272        9115    java.util.Hashtable$Entry[]
9319968 166428  org.apache.tomcat.util.buf.MessageBytes
8533856 32889   int[]

发现有大量的String和自定义对象com.test.util.IPSeeker$IPLocation存在Q检查程序发现此处果然存在内存溢出。修改程序上U后再次用jmap抓取内存数据Q?

146881712   207163  byte[]
98976352    354285  char[]
42595272    53558   int[]
11515632    479818  java.util.HashMap$Entry
9521896 59808   java.util.HashMap$Entry[]
8887392 370308  com.test.bean.UnionIPEntry
8704808 155443  org.apache.tomcat.util.buf.MessageBytes
8066880 336120  java.lang.String

内存溢出问题消除?
注意Q?span style="color: red">q个jmap使用的时候jvm是处在假ȝ态的Q只能在服务瘫痪的时候ؓ(f)?jin)解决问题来使用Q否则会(x)造成服务中断?/span>



@import url(http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);

tobyxiong 2012-02-07 17:02 发表评论
]]>
mvn报错QNo goals have been specified for this buildhttp://www.aygfsteel.com/toby/archive/2012/02/03/369314.htmltobyxiongtobyxiongFri, 03 Feb 2012 03:32:00 GMThttp://www.aygfsteel.com/toby/archive/2012/02/03/369314.htmlhttp://www.aygfsteel.com/toby/comments/369314.htmlhttp://www.aygfsteel.com/toby/archive/2012/02/03/369314.html#Feedback0http://www.aygfsteel.com/toby/comments/commentRss/369314.htmlhttp://www.aygfsteel.com/toby/services/trackbacks/369314.html选择【Run As?【Maven build】的时候,报:(x)
[INFO] Scanning for projects…[INFO]
[INFO] BUILD FAILURE[INFO]
[INFO] Total time: 0.109s[INFO] Finished at: Wed Apr 13 11:04:20 CST 2011[INFO] Final Memory: 1M/4M[INFO]
ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources,
process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-
test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-site, site, post-site, site-deploy,
pre-clean, clean, post-clean. -> [Help 1][ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.[ERROR] Re-run Maven using the -X switch to enable full debug logging.[ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles:[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException 


eclipse安装的maven插g是m2eclipseQ在控制C用命令mvn compileq未报错。后在pom.xml文g<build>标签后面加上<defaultGoal>compile</defaultGoal>卛_?/p>

其实使用命o(h)行时已l指定了(jin)phaseQ而用m2eclipse的【Run As?【Maven build】时q未为其指定goal或phaseQ所以才报这个错误?/p> @import url(http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);

tobyxiong 2012-02-03 11:32 发表评论
]]>
Xmanager q接RHEL5易配|?/title><link>http://www.aygfsteel.com/toby/archive/2012/02/02/369237.html</link><dc:creator>tobyxiong</dc:creator><author>tobyxiong</author><pubDate>Thu, 02 Feb 2012 07:29:00 GMT</pubDate><guid>http://www.aygfsteel.com/toby/archive/2012/02/02/369237.html</guid><wfw:comment>http://www.aygfsteel.com/toby/comments/369237.html</wfw:comment><comments>http://www.aygfsteel.com/toby/archive/2012/02/02/369237.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/toby/comments/commentRss/369237.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/toby/services/trackbacks/369237.html</trackback:ping><description><![CDATA[http://yangrong083.blog.163.com/blog/static/1134060972011018114152778/ @import url(http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);<img src ="http://www.aygfsteel.com/toby/aggbug/369237.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/toby/" target="_blank">tobyxiong</a> 2012-02-02 15:29 <a href="http://www.aygfsteel.com/toby/archive/2012/02/02/369237.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Remove @Override annotation错误提示http://www.aygfsteel.com/toby/archive/2012/01/09/368153.htmltobyxiongtobyxiongMon, 09 Jan 2012 08:49:00 GMThttp://www.aygfsteel.com/toby/archive/2012/01/09/368153.htmlhttp://www.aygfsteel.com/toby/comments/368153.htmlhttp://www.aygfsteel.com/toby/archive/2012/01/09/368153.html#Feedback0http://www.aygfsteel.com/toby/comments/commentRss/368153.htmlhttp://www.aygfsteel.com/toby/services/trackbacks/368153.html因ؓ(f)对于JDK5.0/1.5版本来说Q@Override annotation只能用与对超cȝҎ(gu)重写上,

而不能用在对接口Ҏ(gu)的实现方法上?/h2>

解决的方法是把JDK改ؓ(f)1.6的或动手把注释@OverrideL?br />

You probably need to set the compiler compliance level in eclipse. This can be found in Window->Preferences->Java->Compiler
@import url(http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);

tobyxiong 2012-01-09 16:49 发表评论
]]>
memcache存取数据注意事项http://www.aygfsteel.com/toby/archive/2011/12/30/367562.htmltobyxiongtobyxiongFri, 30 Dec 2011 03:14:00 GMThttp://www.aygfsteel.com/toby/archive/2011/12/30/367562.htmlhttp://www.aygfsteel.com/toby/comments/367562.htmlhttp://www.aygfsteel.com/toby/archive/2011/12/30/367562.html#Feedback0http://www.aygfsteel.com/toby/comments/commentRss/367562.htmlhttp://www.aygfsteel.com/toby/services/trackbacks/367562.html问题描述

1.如果setqmemcache的entity的包l构攑֜com.ttt?br /> 2.如果get出memcache的entity的包l构攑֜com.ooo?拿取不到数?br /> 解决办法
1.l一get和set的entity包结?br /> 原因分析
memcachejava的客L(fng)jar包ؓ(f)设计ZR入式Q?br /> 以后可考虑Q自定义序列化算?存进d先序列化Q要先的时候获取出来后再反序列化@import url(http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);

tobyxiong 2011-12-30 11:14 发表评论
]]>
վ֩ģ壺 | γ| | | | | | ʼ| | ³ľ| | Ͳ| ˳| ƽ| ɳ| | | | | Ʊ| ɽ| ˺| Ȫ| Ϫ| | | | Ȫ| | ֿ| | Ͱ| | | | | | IJ| ұ| ˹| ɽ|