- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vi error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2004 06:27 PM
05-24-2004 06:27 PM
vi error
When i'm running vi i get :
Out of memory - too many lines in file
BYE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2004 06:34 PM
05-24-2004 06:34 PM
Re: vi error
2. try to increase swap
3. buy more memory
4. break the file in pieces, edit the pieces seperately, and join again
5. move the file to a machine with more memory/resources and edit it there, and bring it back after
6. try a line editor (ex, ed)
7. use stream editors (sed, awk, perl)
Enjoy, Have FUN! H.Merijn [ hope one of these helps ]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2004 06:38 PM
05-24-2004 06:38 PM
Re: vi error
Hi ,
This server has 10Gbyte memory ,
Even when i touch a file and then doing vi ,i got this error .
BYE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2004 06:38 PM - last edited on 09-16-2024 02:22 AM by support_s
05-24-2004 06:38 PM - last edited on 09-16-2024 02:22 AM by support_s
Re: vi error
1.First check the memory and swap utilization of the machine.Looks like everything is fully used.
Try increasing the swap and stopping un-neccessary processes.
2.check the free space of /var file system.
- Tags:
- Cache Battery_Module
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2004 06:42 PM - last edited on 09-16-2024 02:21 AM by support_s
05-24-2004 06:42 PM - last edited on 09-16-2024 02:21 AM by support_s
Re: vi error
There are some restrictions with vi.
Get the vim editor as pointed in the link above and use that to open the file
- Tags:
- Cache Battery_Module
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2004 06:44 PM - last edited on 09-16-2024 02:21 AM by support_s
05-24-2004 06:44 PM - last edited on 09-16-2024 02:21 AM by support_s
Re: vi error
You are seeing that error because the file that you are trying to edit is beyond the size that vi can handle
As advised in the posts prior to this, i would urge that you try using other editors.
regards
Mobeen
- Tags:
- Cache Battery_Module
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2004 06:53 PM
05-24-2004 06:53 PM
Re: vi error
/var is OK ,no memory problem .
Even doing vi to new file i got this error .
BYE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2004 07:03 PM
05-24-2004 07:03 PM
Re: vi error
Have you tried to open any text file with another editor?
What happend?, is it possible opent it or the problem is only with the vi?
You could try download vim and try with it, is a vi improved.
http://hpux.connect.org.uk/hppd/hpux/Editors/vim-6.2/
Frank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2004 07:14 PM
05-24-2004 07:14 PM
Re: vi error
Hi ,
I think that the problem is related to buffer cache ,
dbc_max_pct needed to increase .
I will know if it solve the problem in the next reboot ,
BYE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2004 07:37 PM
05-24-2004 07:37 PM
Re: vi error
You should better look at memory parameters. Is vi using shared memory ? In that case, it could be shmxxx parameters. Otherwise it could be maxdsiz, or even ulimit for your user...
Can an other user do vi ?
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2004 07:47 PM
05-24-2004 07:47 PM
Re: vi error
And you didn't tell what OS you have
Latest versions/updates I have (11i is lacking a bit):
10.20: # XSW800GR1020.PHCO_22228 B.10.00.00.AA ex(1),vi(1),expreserve(1) cumulative patch
$Revision: 78.2.1.21 $ 32-bit NLS $
11.00: # QPK1100.PHCO_26021 1.0 ex(1),vi(1) cumulative patch.
$Revision: 82.6.1.21 $ 32-bit NLS $
11.11: # GOLDBASE11i.PHCO_27057 1.0 vi(1) cummulative patch
$Revision: @(#) all CUP11.11_BL2002_0521_14 PATCH_11.11 PHCO_27057
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2004 09:12 PM
05-24-2004 09:12 PM
Re: vi error
I have 11i OS version , and the current patch.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2004 09:41 PM
05-24-2004 09:41 PM
Re: vi error
Check the vi permission first. It should be
like below:
-r-xr-xr-t
Also try to increame ulimit if everything others are ok.
Rgds
Tapas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2004 09:45 PM
05-24-2004 09:45 PM
Re: vi error
What happens if you just start vi (without any arguments)? If you still get the error message, either you have a software installation problem, or a memory problem.
You say you have 10 GB RAM, and swapinfo (or whatever you used) showed that there is enough memory to run vi. If that's so, it must be a software installation / configuration problem.
1 Did you start vi with the full path name (to rule out aliases)
2 Try view, vedit
3 do you have a .exrc file or EXINIT variable?
4 check other EXTERNAL INFLUENCES and WARNINGS of vi's manpage (or ex's manpage).
5 Use swverify to verify the installation of the vi patch installed.
Finally, some library may be incorrect. That's difficult to trace...
JP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2004 10:15 PM
05-24-2004 10:15 PM
Re: vi error
The vi permisions is OK .
unimit -a gives me :
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1887436
stack(kbytes) 376832
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 512
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2004 06:34 AM
05-25-2004 06:34 AM
Re: vi error
Hi all ,
I still have this problem , any ideas ?
BYE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2004 07:32 AM
05-25-2004 07:32 AM
Re: vi error
type vi
If it does not report:
vi is a tracked alias for /usr/bin/vi
then someone has been messing with /etc/PATH or created an alias. To bypass all of this, don't use the shorcut vi, type the full pathname:
/usr/bin/vi
and see if it works OK. If there is still a problem, look at the executable. On a reasonably patched 11i system, vi looks like this:
ll /usr/bin/vi
-r-xr-xr-t 6 bin bin 249856 May 21 2002 /usr/bin/vi
# sum /usr/bin/vi
42893 488 /usr/bin/vi
# what /usr/bin/vi
/usr/bin/vi:
ex.c $Date: 2002/05/16 04:22:01 $Revision: r11.11/1 PATCH_11.11 (PHCO_2
7057)
ex_addr.c $Date: 2002/03/13 22:55:37 $Revision: r11.11/2 PATCH_11.11 (P
HCO_25987)
ex_cmds.c $Date: 2002/03/13 22:55:48 $Revision: r11.11/2 PATCH_11.11 (P
HCO_25987)
ex_io.c $Date: 2002/03/13 22:55:59 $Revision: r11.11/2 PATCH_11.11 (PHC
O_25987)
ex_put.c $Date: 2002/03/13 22:56:11 $Revision: r11.11/2 PATCH_11.11 (PH
CO_25987)
ex_subr.c $Date: 2002/03/13 22:56:24 $Revision: r11.11/2 PATCH_11.11 (P
HCO_25987)
ex_v.c $Date: 2002/03/13 22:56:36 $Revision: r11.11/3 PATCH_11.11 (PHCO
_25987)
ex_vops2.c $Date: 2002/03/13 22:56:59 $Revision: r11.11/2 PATCH_11.11 (
PHCO_25987)
ex_vput.c $Date: 2002/03/13 22:57:11 $Revision: r11.11/2 PATCH_11.11 (P
HCO_25987)
ex_vwind.c $Date: 2002/03/13 22:57:22 $Revision: r11.11/2 PATCH_11.11 (
PHCO_25987)
$Revision: @(#) all CUP11.11_BL2002_0521_14 PATCH_11.11 PHCO_27057
Tue May 21 20:22:11 PDT 2002 $
$ B.11.11_LR Oct 27 2000 00:57:16 $
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2004 07:36 AM
05-25-2004 07:36 AM
Re: vi error
How is your swap utilization.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2004 08:05 AM
05-25-2004 08:05 AM
Re: vi error
any feedback on my suggestions?
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2004 08:21 AM
05-25-2004 08:21 AM
Re: vi error
How many lines are there in the file?. vi has limitations. From the man page,
Maximum File Size
The maximum file length of 234,239 lines is silently enforced.
If that is not the case, then follow Bill's suggestions.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2004 07:46 PM
05-29-2004 07:46 PM
Re: vi error
I checked : memory usage,swap, patches ...
Even if i execute just vi with no arguments, i get this error .
I still have this problem ... :(
BYE