免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1493 | 回复: 3
打印 上一主题 下一主题

Sybase_memory_config [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-09-22 12:48 |只看该作者 |倒序浏览
如果您要配置内存>;1.5G且<2G,只需要做以下步骤就可以了,不需要使用
>; imagecfg
>; Step 1:
>;    You need to first set the shared memory starting address for the server
>;    to the minimun value:
>;
>;    1>; sp_configure 'shared memory starting address', 23662592
>;    2>; go
>;
>;    Step 2:
>;    Set the total memory to what you like it to be and recycle the server
>;    (in this example - 1.75 GB )
>;    Because shared addressable memory is in 2K pages.
>;
>;    1>; sp_configure 'max memory', 917504 (您也可以直接修改.cfg文件)
>;    2>; go

2.2.2: How to Configure More than 2G bytes of Memory for ASE on NT.

-------------------------------------------------------------------------------

The following was posted on news://forums.sybase.com/sybase.public.ase.nt ,
taken directly from a Sybase SPS case notes.

(I read recently that this is not needed, that Sybase does all of this for you
before it leaves the factory. If anyone knows the real answer, I would be
grateful for an update.)

If you are using NT server enterprise, or Windows 2000 Advanced Server, you may
be able to get up to 3gig:

Here is what you need to do in order to configure greater than 2GB memory for
ASE on NT:

Step 1: Make a backup copy of sqlsrvr.exe in the sybase bin directory

Step 2: Verify the current settings of sqlsrvr.exe using imagecfg.exe:

imagecfg sqlsrvr.exe
sqlsrvr.exe contains the following configuration information:
   Subsystem Version of 4.0
   Stack Reserve Size: 0x20000
   Stack Commit Size: 0x4

Step 3: Use imagecfg to switch on large addressing using the -l (lowercase L)
switch:

imagecfg -l sqlsrvr.exe
sqlsrvr.exe contains the following configuration information:
   Subsystem Version of 4.0
   Stack Reserve Size: 0x20000
   Stack Commit Size: 0x4

sqlsrvr.exe updated with the following configuration information:

   Subsystem Version of 4.0
   Image can handle large (>;2GB) addresses
   Stack Reserve Size: 0x20000
   Stack Commit Size: 0x4

Step 4: verify ASE is able to start

Step 5: The NT machine must be booted with the /3GB flag and must have
sufficient paging file space (e.g., if you want ASE to access 3G of memory then
the paging file must be at least that size)

Step 6: increase total memory to say 2.2 gb (anything >; 2gb)

Step 7: increase starting virtual memory address to 23662592 decimal (which is
1691000 hex) as shown:

sp_configure 'shared memory starting address', 23662592

Step 8: restart server

Step 9: test to connect a lot of users (more than 240)

Back to top

论坛徽章:
0
2 [报告]
发表于 2004-09-22 15:08 |只看该作者

Sybase_memory_config

第5步操作中的/3GB 参数加在什么地方?

论坛徽章:
0
3 [报告]
发表于 2004-09-22 15:16 |只看该作者

Sybase_memory_config

哦,找到了,在boot.ini文件中添加/3GB参数

http://www.pconline.com.cn/pcjob/other/data/others/0405/371163.html

论坛徽章:
0
4 [报告]
发表于 2004-09-27 09:24 |只看该作者

Sybase_memory_config

呵呵,配置好啦!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP