蝸牛的JAVA外殼

          ┎Running Snail┒ ┖ -------------- ┚

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            13 Posts :: 0 Stories :: 10 Comments :: 0 Trackbacks

          2007年12月5日 #

               摘要: 我寫了一個Feed提取小程序,但有時由于Feed長時間無響應,所以需要去判斷是否超時,以下的程序 主線程:  1package test.thread;  2  3import com.sun.syndication.feed.synd.SyndFeed;  4  5public class ...  閱讀全文
          posted @ 2008-01-09 16:31 會跑的蝸牛 閱讀(1958) | 評論 (0)編輯 收藏

          由于現在跟其他站點合作,遇到跨域問題,在JQuery中的$.get有一個彩蛋可以使用
          服務器A(192.168.0.102):test.jsp
          1<%@ page contentType="text/html; charset=GBK" %>
          2<%request.setCharacterEncoding("GBK");%>
          3var cardNames = new Array('hh', 'unser');
          4var cardMails = new Array('unser@gd165.com', 'gdunser@gmail.com');

          服務器B(192.168.0.101):test.htm
           1<HTML>
           2<HEAD>
           3<script language="JavaScript" src="/common/js/jquery-1.2.1.pack.js"></script>
           4
           5</HEAD>
           6<BODY>
           7<SCRIPT>
           8$.get("http://192.168.0.102/test.jsp",
           9    { names: "c" }
          10    function(data)
          11        alert("Data Loaded: " + cardNames);
          12        
          13        for (i=0;i<cardNames.length;i++)
          14        {
          15            alert(cardNames[i]);
          16        }

          17    }
          ,
          18    "script"
          19);
          20
          </SCRIPT>
          21</BODY>
          22</HTML>
          posted @ 2007-12-21 17:13 會跑的蝸牛 閱讀(4804) | 評論 (5)編輯 收藏

          今天發現執行mysql的 REPLACE INTO 的時候mysql返回 #1114 - The table ‘xxxx’ is full
          這個錯誤。。。
          以前沒有遇到過,于是查找資料解決這個問題。。。

          得知是由于內存表的大小超過了規定的范圍,于是搜索解決方法,
          網上提到的有兩種解決方法,
          一種是修改tmp_table_size參數,另外一種是修改max_heap_table_size參數。。。

          [root@localhost etc]# vi /etc/rc.d/init.d/mysql
          找到
          $bindir/mysqld_safe --datadir=$datadir --pid-file=$pid_file >/dev/null 2>&1 &
          修改為
          $bindir/mysqld_safe --datadir=$datadir --pid-file=$pid_file -O tmp_table_size=64M -O max_heap_table_size=32M >/dev/null 2>&1 &

          重啟mysql
          [root@localhost etc]# /usr/bin/mysqladmin -u root -p shutdown
          Enter password:
          [root@localhost etc]# /etc/init.d/mysql start
          [root@localhost etc]# mysql

          查看是否己修改

          mysql> show variables like '%max_heap_table_size%';
          +---------------------+----------+
          | Variable_name       | Value    |
          +---------------------+----------+
          | max_heap_table_size | 33553408 |
          +---------------------+----------+
          1 row in set (0.00 sec)

          mysql> show variables like '%tmp_table_size%';
          +----------------+----------+
          | Variable_name  | Value    |
          +----------------+----------+
          | tmp_table_size | 67108864 |
          +----------------+----------+
          1 row in set (0.00 sec)

          己經修改成功!
          注意:修改參數值是按照M單位來計算的。。。
          posted @ 2007-12-05 12:00 會跑的蝸牛 閱讀(1398) | 評論 (0)編輯 收藏

          主站蜘蛛池模板: 桦川县| 广昌县| 五寨县| 福建省| 厦门市| 宝坻区| 阳西县| 长治市| 阳谷县| 基隆市| 梨树县| 阳原县| 栾川县| 韶山市| 马尔康县| 谢通门县| 页游| 昌平区| 北票市| 通化县| 呼伦贝尔市| 眉山市| 吉安市| 庆元县| 德清县| 邯郸市| 罗江县| 营口市| 吉隆县| 庆元县| 望谟县| 孟州市| 碌曲县| 如皋市| 阿瓦提县| 乌兰浩特市| 沁水县| 郯城县| 湄潭县| 广平县| 高邑县|